Listing files:
Changing file/folder permissions:
Changing the folder permissions recursively:
Copying files to local from HDFS:
Copying files to HDFS from local disk:
Deleting a folder in HDFS:
Deleting a file in HDFS:
sudo -u hdfs hadoop fs -ls /tmp
Changing file/folder permissions:
sudo -u hdfs hadoop fs -chmod 777 /tmp
Changing the folder permissions recursively:
sudo -u hdfs hadoop fs -chmod -R 777 /tmp
Copying files to local from HDFS:
sudo -u hdfs hadoop fs -copyToLocal <HDFS Path> <LOCAL SERVER PATH>
Copying files to HDFS from local disk:
sudo -u hdfs hadoop fs -copyFromLocal <LOCAL SERVER PATH> <HDFS Path>
Deleting a folder in HDFS:
sudo -u hdfs hadoop fs -rm -r <HDFS Folder>
Deleting a file in HDFS:
sudo -u hdfs hadoop fs -rm <HDFS Folder>
No comments:
Post a Comment