简体   繁体   English

将文件从1个群集的本地计算机传输到另一个群集的hdfs

[英]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? 我有2个hadoop群集(A和B),并且想要将文件从群集A的本地传输到群集B的HDFS。有没有办法做到这一点?

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 我尝试了copyFromLocal并将其放入,但看起来它们没有将文件复制到群集B的HDFS中,并显示不支持它们: 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) fyi:连接看起来打开,因为我能够从群集A的本地读取群集B的HDFS(hadoop fs -ls hdfs:// NNofB:port / path)

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

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

相关问题 如何使用SSH文件传输协议将文件从本地机器复制到服务器? - How to copy files from local machine to server using SSH file transfer protocol? 使用SSH将WebURL从本地计算机浏览器传输到硬盘上的远程计算机 - Using SSH, transfer a WebURL from local machine browser to remote machine on hard disk 如何自动将zipfile从本地文件系统复制到HDFS - How to copy zipfiles automatically from local file system to HDFS 如何知道文件是否从本地成功传输到 hdfs - how to know if file transferred successfully from local to hdfs 如何在Python中将文件从本地移动到HDFS? - How do I move a file from local to HDFS in Python? 从 sftp 获取最新文件到本地机器 - Get latest file from sftp to local machine 将数据从集群本地复制到 pod 的脚本既不工作也不给出任何错误 - Script to copy data from cluster local to pod is neither working nor giving any error 如何将文件从远程服务器的docker容器复制到本地机器 - How to copy file from docker container of remote server to local machine 如何在HUE的oozie工作设计器中将文件从HDFS移到本地文件系统? - How to move file from HDFS to local filesystem within HUE's oozie job designer? 无法将文件从 s3 复制到 ubuntu 本地机器 - unable to copy file from s3 to ubuntu local machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM