Sqoop import-all-tables doesn't support target directory...

448 views
Skip to first unread message

lakshminarayan

unread,
Oct 15, 2013, 3:17:46 AM10/15/13
to chenn...@googlegroups.com
Why Sqoop doesn't support target directory?

Doesn't works
sqoop import-all-tables -connect jdbc:mysql://localhost/datamarts -username root -password password --target-dir /datamart -m 1

Works
sqoop import-all-tables --connect jdbc:mysql://localhost/datamarts --username root --password password -m 1
sqoop import -connect jdbc:mysql://localhost/datamarts -username root -password password --table customer --target-dir /datamart -m 1

Any ideas?



Mahesh

unread,
Oct 15, 2013, 7:20:26 AM10/15/13
to chenn...@googlegroups.com
Hi Lakshmi,
As per my knowledge goes, no implementation is provided for import-all-tables command to take in argument --target-dir. That's why it wont work. But since all it does is  import table by table in sequential order into HDFS, I do not see a reason why that feature should not be provided.... 

Thanks
Mahesh 

Reply all
Reply to author
Forward
0 new messages