hadoop命令备忘
hadoop dfsadmin -safemode get 查看namenode是否处于安全模式 hadoop dfsadmin -report 显示文件系统的统计信息,以及所连接的各个datanode的信息 http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html hadoop fs -copyFromLocal <localsrc> URI hadoop fs -copyFromLocal demo.txt /user/wwj/ hdfs dfs -mkdir -p /user/wwj sudo -u hadfs haddop fs -ls /user