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]

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 and --hive-import how to define destination folder for hive/warehouse

avatar
Contributor

is it possible to specify the hive-table destionation when using sqoop with the -hive-import switch.

 

the script below is creating the tables at the root of /user/hive/warehouse.  I'd like them in a single directory that I specify.

 

using --hive-home was a guess but it is not working.  Thanks

 

sqoop import-all-tables \
--connect jdbc:oracle:thin:@//schema.domain.org:1521/schema \
--username=user -P \
--warehouse-dir '/user/choa/dev/HBOC' \
--fields-terminated-by '|' \
--hive-import \
--hive-home '/user/hive/warehouse/hboc.db' \
-m 1

1 ACCEPTED SOLUTION

avatar
Contributor

Hi sir,

the concept you are describing is known in Hive as external table and Sqoop currently do not supports that. It's covered by SQOOP-816:

 

https://issues.apache.org/jira/browse/SQOOP-816

 

Jarcec

View solution in original post

1 REPLY 1

avatar
Contributor

Hi sir,

the concept you are describing is known in Hive as external table and Sqoop currently do not supports that. It's covered by SQOOP-816:

 

https://issues.apache.org/jira/browse/SQOOP-816

 

Jarcec