Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

sqoop import all tables into HDFS

avatar
New Member

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

11277-error.png

Thanks,

Sagar.

1 ACCEPTED SOLUTION

avatar
New Member

@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.

View solution in original post

2 REPLIES 2

avatar
New Member

@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.

avatar
New Member

Thanks Steven for your answer