Hadoop Download File to Local: Step-by-Step

You can use the following command to download files from Hadoop cluster to local machine:

hadoop fs -get <HDFS文件路径> <本地文件路径>

For example, to download the file /user/hadoop/input.txt from a Hadoop cluster to the file /home/user/input.txt on your local machine, you can use the following command:

hadoop fs -get /user/hadoop/input.txt /home/user/input.txt

This will download the file from the Hadoop cluster and save it to the local file system.

bannerAds