hadoopHTTP://www.aliyun.com/zixun/aggregation/17253.html">常見問題解決:
-----------------------------------------------------------
WARN mapred. LocalJobRunner: job_local910166057_0001
org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException: Permission denied: user=***, access=WRITE, inode="wordcount":root:supergroup:rwxr-xr-x
sulution:added this entry to conf/hdfs-site.xml
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
--------------------------------------------------------------
ERROR org.apache.hadoop.hdfs.server.namenode.SafeModeException:
Cannot create /mapreduce/wordcount/output/1. Name node is in
safe mode.
代碼中添加
conf.set("dfs.permissions","false");
-------------------------------------------------------------
ERROR security. UserGroupInformation: PriviledgedActionException as:bc_qi cause:o rg.apache.hadoop.mapred.FileAlreadyExistsException: Output directory /mapreduce/wordcount/output/1 already exists
執行
hadoop fs -rmr /mapreduce/wordcount/output
-------------------------------------------------------------
提示連不上 50010 埠;
查看是不是防火牆的原因。
照樣子添加 /etc/sysconfig/iptables 埠過濾
------------------------------------------------------------