put, copyFromLocal and moveFormLocal Command

Posted at  00:51  |  in  HDFS

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 -put Command

Hadoop -copyFromLocal Command
Hadoop -copyFromLocal Command
Hadoop -moveFromLocal Command
Hadoop -moveFromLocal Command
        

Share this post

About-Privacy Policy-Contact us
Copyright © 2013 Hadoop Tutor. Blogger Template by Bloggertheme9
Proudly Powered by Blogger.
back to top