Creating Directory in HDFS ->hadoop fs –mkdir /user/systemname/foldername OR ->hadoop fs –mkdir foldername Delete a Folder in HDFS ->hadoop fs –rmr /user/systemname/foldername OR ->hadoop fs –rmr foldername Delete a File in HDFS ->hadoop fs –rm /user/systemname/foldername/filename OR ->hadoop fs –rm foldername/filename Copying a file from one location to another location in HDFS ->hadoop fs –cp source destination Moving a File from one location to another location in HDFS ->hadoop fs –mv source destination Putting a file in HDFS ->hadoop fs –put /source /destination OR ->hadoop fs –copyFromLocal /source /destination Getting a file in HDFS ->hadoop fs –get /source /destination OR ->hadoop fs –copyToLocal /source /destination Getting list of file in HDFS ->hadoop fs –ls Reading content of a file in HDFS ->hadoop fs –cat filelocation (head, tail) Checking HDFS condition ->hadoop fsck Getting Health of Hadoop ->sudo –u hdfs hadoop / ->sudo –u hdfs hadoop /sourcepath –files –blocks –racks UnZip a file in Hadoop -tar xzvf filename
Tuesday, November 19, 2013
Commands in HDFS :
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment