- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Copy HDFS data to GCP
- Labels:
-
Cloudera Data Platform (CDP)
-
HDFS
Created ‎07-22-2022 06:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have two cases :
Case A : i have a kerberised production cluster i want to copy files from this linux box to gcp storage ( non kerberised).
Currently performing manully : downloading linux files to local system using winscp and uploading to google cloud storage
if can be done using Distcp provinding steps will be helpful
Case B : from the same kerberised cluster want to copy data of HDFS to Google cloud storage( non kerberised)
Thanks,
Syed.
Created ‎08-02-2022 03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @syedshakir ,
Please let us know what is your cdh version?
Case A:
If I'm understanding correctly you have a kerberized cluster and the file is at local not on hdfs, so you don't need kerberos authentication. Just refer to below google docs, there are a few ways to do it:
https://cloud.google.com/storage/docs/uploading-objects#upload-object-cli
Case B:
To be honest I never did it so I would try:
1. follow the below document to configure google cloud storage with hadoop:
https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/admin_gcs_config.html
2. if distcp cannot work then follow this document to configure some properties:
3. save the whole output of distcp then upload to here, I can help you to check. Remember to remove the sensitive information (such as hostname, ip) from the logs then you can upload.
If the distcp output doesn't contain kerberos related errors then you can enable debug logs then re-run the distcp job and save the new output with debug logs:
export HADOOP_ROOT_LOGGER=hadoop.root.logger=Debug,console;export HADOOP_OPTS="-Dsun.security.krb5.debug=true"
Thanks,
Will
