How to copy file from HDFS to the local file system Ask Question

How to copy file from HDFS to the local file system Ask Question

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

  1. bin/hadoop dfs -get /hdfs/source/path /localfs/destination/path
  2. bin/hadoop dfs -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.

おすすめ記事