Created on 04-22-2016 12:23 PM - edited 09-16-2022 03:15 AM
Hi ,
I have recently set-up VM CDH5.5 on my machine and tried to check commands for importing data into hive from mysql. Job gets stuck after below message in log:
"Loading uploaded data into Hive
Logging initialized using configuration in jar:file:/usr/jars/hive-common-1.1.0-cdh5.5.0.jar!/hive-log4j.properties"
Can someone help why job stuck after this step and have i missed some configuration step.
Command Used:
sqoop import --connect "jdbc:mysql://localhost:3306/retail_db" \
--username retail_db \
-P \
--table customers --target-dir /user/hive/warehouse/sqoop_import --fields-terminated-by "," \
--hive-import --create-hive-table --hive-table sample.customers
Created 05-04-2016 02:14 PM
You can restart the new VM and login from there because once VM is having configuration issue then it will be difficult to get is resolved.
Created 04-22-2016 02:06 PM
Hi,
Most of the code written is correct except for the username.
Try the username as retail_dba instead
It should work
Regards
Sameer Sheth
Created 04-23-2016 01:47 AM
Created 05-04-2016 02:14 PM
You can restart the new VM and login from there because once VM is having configuration issue then it will be difficult to get is resolved.
Created 06-01-2017 01:59 PM
I have the same issue in real QA environment, please let me know any workaround?