I am creating an external table using Hive shell and loading some data in it. When I run the show table command, it shows the table name. But when I run a select query to display the data from that table, it does not give any output.
I also tried to find the table in the /user/Hive/Warehouse location in HDFS but it does not show it.
I am using the default Derby database and have not made any changes to the hive-site.xml file.
Update
I was using the incorrect file to input the data. That file was a .JSON file. Now I am trying to create an external table using Hive shell and load some data in it. It gives an error saying 'Execution error return code 1 from rg.apache.hadoop.hiveql.exec.DDLTask. MetaException(message:hdfs:/localhost:9000out_sa/part-r-00000s not a directoryor unable to create one)
Below is the query and the data that I am trying to load in a String column.
Query
CREATE EXTERNAL TABLE twitter_Data (Comments STRING) Location 'out_sa/part-r-00000';
Sample Data
RT @arjenvanberkum: The impacts of #BigData that you may not have heard of |
Descarga los PDFs de los Cursos de Google AdWords, Analytics, Community y SEO. Infórmate!
RT @cookovernewz: The Secret Ingredient In The Text Analytics ROI Recipe - Forbes
RT @cookovernewz: The Secret Ingredient In The Text Analytics ROI Recipe - Forbes
The Secret Ingredient In The Text Analytics ROI Recipe - Forbes