文件操作
命令
bin/hdfs dfs -mkdir /data01
bin/hdfs dfs -ls /
bin/hdfs dfs -put ./test1.txt /test 添加文件
bin/hdfs dfs -text /test/test1.txt 查看内容
bin/hdfs dfs -tail /test/test1.txt
bin/hdfs dfs -cat /test/test1.txt
bin/hdfs dfs -rm /test/test1.txt 删除文件
bin/hdfs getconf -namenodes
bin/hdfs getconf -confKey hadoop.tmp.dir
bin/hdfs dfsadmin -safemode get 安全模式
bin/hdfs dfsadmin -reportd
命令
bin/hdfs dfs -mkdir /data01
bin/hdfs dfs -ls /
bin/hdfs dfs -put ./test1.txt /test 添加文件
bin/hdfs dfs -text /test/test1.txt 查看内容
bin/hdfs dfs -tail /test/test1.txt
bin/hdfs dfs -cat /test/test1.txt
bin/hdfs dfs -rm /test/test1.txt 删除文件
bin/hdfs getconf -namenodes
bin/hdfs getconf -confKey hadoop.tmp.dir
bin/hdfs dfsadmin -safemode get 安全模式
bin/hdfs dfsadmin -reportd