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.

How to use sqoop to import the data in to Encrypt zone ? we are using HDP 2.5 + Kerberized and Ranger installed

avatar
New Member

How to use sqoop to import the data in to Encrypt zone ? we are using HDP 2.5 + Kerberized and Ranger installed

1 ACCEPTED SOLUTION

avatar
Expert Contributor
@Nube Technologies

For Hive:

You can use Sqoop with the --target-dir parameter set to a directory inside the Hive encryption zone.

You need to specify the -D option after sqoop import.

sqoop import \-D sqoop.test.import.rootDir=<root-directory> \--target-dir <directory-inside-encryption-zone> \<additional-arguments>

For append or incremental export

Make sure that the sqoop.test.import.rootDir property points to the encryption zone specified in the --target-dir argument.

For HCatalog:

No config required.

For more information on HDP services for HDFS encryption refer this link below,

HDP services for HDFS encryption

Let me know if you have any other questions

View solution in original post

3 REPLIES 3

avatar
Expert Contributor
@Nube Technologies

For Hive:

You can use Sqoop with the --target-dir parameter set to a directory inside the Hive encryption zone.

You need to specify the -D option after sqoop import.

sqoop import \-D sqoop.test.import.rootDir=<root-directory> \--target-dir <directory-inside-encryption-zone> \<additional-arguments>

For append or incremental export

Make sure that the sqoop.test.import.rootDir property points to the encryption zone specified in the --target-dir argument.

For HCatalog:

No config required.

For more information on HDP services for HDFS encryption refer this link below,

HDP services for HDFS encryption

Let me know if you have any other questions

avatar
New Member

Thanks @Yogeshprabhu. It works perfectly.

avatar
Expert Contributor

@Nube Technologies Good to hear that.