简体   繁体   中英

transfer file from local machine of 1 cluster to hdfs of another cluster

I have 2 hadoop clusters(A and B) and want to transfer a file from local of cluster A to HDFS of cluster B. Is there a way to do it?

I tried copyFromLocal and put but looks like they don't copy the file over to the HDFS of cluster B and show that they are not supported: copyFromLocal: Not supported

fyi: connection looks open as I am able to read HDFS of cluster B from local of cluster A(hadoop fs -ls hdfs://NNofB:port/path)

不知道从HDFS-> HDFS是否有直接方法,但是您可以从ClusterA中某个节点上的HDFS get数据,将数据scp到ClusterB中的节点,然后put数据从ClusterB中的该节点放入HDFS。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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