Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 01-10-2017 11:49 AM - edited 08-19-2019 03:23 AM
Hi,
I have 4 tables in Mysql DB, I can able to import single table to HDFS, but when I try to import all 4 tables using below command i am getting error as shown below
sqoop-import-all-tables --connect jdbc:mysql://192.168.0.32:3306/database1 --username hive --password hive --target-dir '/user/tsldp/patelco/' --m 1
Thanks,
Sagar.
Created 01-10-2017 09:10 PM
@sagar pavan, instead of using:
--target-dir '/user/tsldp/patelco/'
try:
--warehouse-dir '/user/tsldp/patelco/'
Each table will then be in a subdirectory under '/user/tsldp/patelco/'
Cheers, Steven.
Created 01-10-2017 09:10 PM
@sagar pavan, instead of using:
--target-dir '/user/tsldp/patelco/'
try:
--warehouse-dir '/user/tsldp/patelco/'
Each table will then be in a subdirectory under '/user/tsldp/patelco/'
Cheers, Steven.
Created 01-11-2017 04:44 AM
Thanks Steven for your answer