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.

Why only dbo schema tables are loading into Hive when we use import-all-tables.

avatar
Rising Star

How can we load other than dbo schema tables into Hive by using hive import-all-tables command.

1 ACCEPTED SOLUTION

avatar
@srinivasa rao

This is a limitation with sqoop as only default schema under the userid would be used for extracting all the tables with sqoop import-all-tables. Workaround is to import tablewise using sqoop import.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

Try to pass --schema schemaname argument, alternatively, specify database and schema in your jdbc URL

sqoop import ... --table custom_table -- --schema custom_schema

avatar
@srinivasa rao

This is a limitation with sqoop as only default schema under the userid would be used for extracting all the tables with sqoop import-all-tables. Workaround is to import tablewise using sqoop import.