. 离开安全模式方法

  bin/hadoop  dfsadmin -safemode leave



hadoop2.7.1 相对路径不能用,似乎必须用绝对路径创建????


bin/hdfs dfs -mkdir input错误 提示“ls: `input': No such file or directory”


(环境是hadoop2.7 centos 64位 )


第一步错误必须换成bin/hdfs dfs -mkdir /input



bin/hdfs  dfs -put /home/yumh/hadoop-2.7.1/etc/hadoop/*.xml /input


bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.1.jar grep /input /output 'dfs[a-z.]+'



bin/hadoop dfs -cat /output/*