Hadoop HDFS command

hadoop fs -mkdir  Create HDFS directory

Hadoop fs -ls  List HDFS directory

hadoop fs -copyFromLocal  Copy local files to HDFS

hadoop fs -put  Using put to copy files to HDFS, if files already exist, they will be directly covered.

hadoop fs -cat  List file contents in HDFS directory

hadoop fs -copyToLocal  Copy files on HDFS to local

hadoop fs -get Use get to copy files on HDFS to local

hadoop fs -cp Copy HDFS file

hadoop fs -rm Delete HDFS file

hadoop fs -rm -R Delete HDFS directory

 

Enter the master boot command:

start-all.sh 

 

Leave a Reply

Your email address will not be published. Required fields are marked *