sqoop import changes ownership : hive table displays NULL values in columns -
i have table orders_1
300 records , want load data hive table.
when ran sqoop hive-import command, table data loaded in /hive/warehouse/ location.but user ownership has changed , i'm facing issue when querying hive table view loaded table data.it displays columns null values.
sqoop-import --connect jdbc:mysql://localhost/retail_db --username root --password cloudera --table orders_1 --hive-import --hive-database my_sqoop_db --hive-table hive_orders1 --hive-overwrite --fields-terminated-by '\t' --lines-terminated-by '\n' -m 1;
output :
info hive.hiveimport: loading uploaded data hive logging initialized using configuration in jar:file:/usr/lib/hive/lib/hive-common-0.13.1-cdh5.3.0.jar!/hive-log4j.properties ok time taken: 1.039 seconds loading data table my_sqoop_db.hive_orders1 chgrp: **changing ownership** of 'hdfs://quickstart.cloudera:8020/user/hive/warehouse/my_sqoop_db.db/hive_orders1/part-m-00000': user not belong hive table my_sqoop_db.hive_orders1 stats: [numfiles=1, **numrows=0**, totalsize=12466, rawdatasize=0] ok
fyi , same user root first time able sqoop hive-import , view data in hive , hive operations.
i not figure out went wrong. can please me in resolving issue ?
Comments
Post a Comment