I want to load a file from hdfs to my local server using putty and then rename it and again load it back to hdfs. How can I do so? I need the Unix commands for it. Any help will be appreciated.
Asked
Active
Viewed 436 times
-2
-
Possible duplicate of [How to copy file from HDFS to the local file system](https://stackoverflow.com/questions/17837871/how-to-copy-file-from-hdfs-to-the-local-file-system) – OneCricketeer Oct 09 '18 at 01:50
-
Using Putty would only get it to the server you've SSHd into, not the actual local filesystem... – OneCricketeer Oct 09 '18 at 01:51
1 Answers
0
Copy from HDFS to Local File system.
bin/hadoop fs -copyToLocal /hdfs/source/path /localfs/destination/path
Copy from Local to HDFS File System.
bin/hadoop fs -copyFromLocal /localfs/destination/path /hdfs/source/path

Sakthivel G
- 121
- 1
- 8