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.

Does distcp use SSL/TLS when copying files to S3

avatar
New Member

I am using HW Hadoop 2.6 and use distcp to transfer files to S3. I am using the following command to transfer files:

hadoop distcp -D mapred.job.queue.name="somename" -Dfs.s3n.awsAccessKeyId="xxxx" -Dfs.s3n.awsSecretAccessKey="xxxx" -m "100" -update -pugp "hdfs:///path-in-hdfs" "s3n://path-to-s3"

Does this command transfer the data securely using https ssl/tls over port 443? Or do I need to develop a mechanism to encrypt the data before transferring?

1 ACCEPTED SOLUTION

avatar

Nishant, have you seen this thread on StackOverflow? It advises that distcp to S3 is secure by default.

http://stackoverflow.com/questions/28375771/securely-transferring-data-from-hdfs-to-amazon-s3-using-... StackOverflow user NachoNachoMan suggested you can test this by placing a policy on the bucket that prevents putobject when securetransport=false.

Also, you'll probably want to use 's3a' in your put command "s3n://path-to-s3"

https://wiki.apache.org/hadoop/AmazonS3

View solution in original post

1 REPLY 1

avatar

Nishant, have you seen this thread on StackOverflow? It advises that distcp to S3 is secure by default.

http://stackoverflow.com/questions/28375771/securely-transferring-data-from-hdfs-to-amazon-s3-using-... StackOverflow user NachoNachoMan suggested you can test this by placing a policy on the bucket that prevents putobject when securetransport=false.

Also, you'll probably want to use 's3a' in your put command "s3n://path-to-s3"

https://wiki.apache.org/hadoop/AmazonS3