Hadoop: dfs常用命令

bin/hadoop dfs -mkdir /hilu

bin/hadoop dfs -touchz /hilu/niuyear.txt
bin/hadoop dfs -touchz /hilu/niuyear2.txt

bin/hadoop dfs -rm /hilu/niuyear2.txt

bin/hadoop dfs -ls /hilu

bin/hadoop dfs -put test.txt /hilu

bin/hadoop dfs -cat /hilu/test.txt

bin/hadoop dfs -mv /hilu/test.txt /hilu/test4.txt

bin/hadoop dfs -copyToLocal /hilu /root/dfs

http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html

你可能感兴趣的:(Hadoop)