put, copyFromLocal and moveFormLocal Command:
All these commands are used to copy the files from Local File System to the Hadoop File System. put and copyFormLocal Commands copy the file by keeping the original, but moveFromLocal deletes the original and moves the file to Hadoop File System. The following are the syntax of all the three commands.
- -put <localsrc> <dst>
- -copyFromLocal <localsrc> <dst>
- -moveFromLocal <localsrc> <dst>
The following figures shows you the examples of all the three commands.
Hadoop -put Command |
Hadoop -copyFromLocal Command |
Hadoop -moveFromLocal Command |