简体   繁体   English

将文件从不安全的HDFS传输到安全的HDFS群集

[英]Transfer of files from unsecured hdfs to secured hdfs cluster

I wanted to transfer files from unsecured HDFS cluster to kerberized cluster. 我想将文件从不安全的HDFS群集传输到kerberized群集。 I am using distcp to transfer the files. 我正在使用distcp传输文件。 I have used the following command. 我使用了以下命令。

hadoop distcp -D ipc.client.fallback-to-simple-auth-allowed=true hdfs://<ip>:8020/<sourcedir> hdfs://<ip>:8020/<destinationdir>

I am getting the following error after I executed the above command in the kerberized cluster. 在kerberized集群中执行以上命令后,出现以下错误。

java.io.EOFException: End of File Exception between local host is: "<xxx>"; destination host is: "<yyy>; : java.io.EOFException; For more details see:  http://wiki.apache.org/hadoop/EOFException

this is error because: 这是错误的,因为:

cluster is blocked for RPC communication, in such cases, webhdfs protocol can be used, so above distcp can be rewritten as 群集被阻止进行RPC通信,在这种情况下,可以使用webhdfs协议,因此上述distcp可以重写为

hadoop distcp -D ipc.client.fallback-to-simple-auth-allowed=true hdfs://xxx:8020/src_path webhdfs://yyy:50070/target_path

this is very good blog post for distcp 这是distcp的非常好的博客文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM