本文介绍了如何将文件从 HDFS 复制到本地文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将文件从 HDFS 复制到本地文件系统.文件下没有文件的物理位置,甚至没有目录.我如何将它们移动到我的本地以进行进一步验证.我通过 winscp 进行了尝试.
How to copy file from HDFS to the local file system . There is no physical location of a file under the file , not even directory . how can i moved them to my local for further validations.i am tried through winscp .
推荐答案
bin/hadoop fs -get/hdfs/source/path/localfs/destination/path
bin/hadoop fs -copyToLocal/hdfs/source/path/localfs/destination/path
- 将您的网络浏览器指向 HDFS WEBUI(
namenode_machine:50070
),浏览到您要复制的文件,向下滚动页面并点击下载文件.
bin/hadoop fs -get /hdfs/source/path /localfs/destination/path
bin/hadoop fs -copyToLocal /hdfs/source/path /localfs/destination/path
- Point your web browser to HDFS WEBUI(
namenode_machine:50070
), browse to the file you intend to copy, scroll down the page and click on download the file.
这篇关于如何将文件从 HDFS 复制到本地文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!