Search code examples
hadoophivesqoophadoop-partitioning

Data in HDFS files not seen under hive table


I have to create a hive table from data present in oracle tables. I'm doing a sqoop, thereby converting the oracle data into HDFS files. Then I'm creating a hive table on the HDFS files. The sqoop completes successfully and the files also get generated in the HDFS target directory. Then I run the create table script in hive. The tables gets created. But it is an empty table, no data is seen in the hive table.

Has anyone faced a similar problem?


Solution

  • Hive default delimiter is ctrlA, if you don't specify any delimiter it will take default delimiter. Add below line in your hive script .

    row format delimited fields terminated by '\t'