本文介绍了如何将文件从HDFS复制到本地文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将文件从HDFS复制到本地文件系统。文件下没有物理位置,甚至没有目录。

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 .

推荐答案


  1. bin / hadoop fs -get / hdfs / source / path / localfs / destination / path

  2. hadoop fs -copyToLocal / hdfs / source / path / localfs / destination / path

  3. 将您的Web浏览器指向 HDFS WEBUI code> namenode_machine:50070 ),请浏览到要复制的文件,向下滚动页面,然后点击下载文件

  1. bin/hadoop fs -get /hdfs/source/path /localfs/destination/path
  2. bin/hadoop fs -copyToLocal /hdfs/source/path /localfs/destination/path
  3. 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复制到本地文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 14:57