hadoop常见问题解决

我的CSDN博客地址:http://blog.csdn.net/qidong7

常见问题解决:

-----------------------------------------------------------

WARNmapred.LocalJobRunner:job_local910166057_0001

org.apache.hadoop.security.AccessControlException:org.apache.hadoop.security.AccessControlException:Permissiondenied:user=***,access=WRITE,inode="wordcount":root:supergroup:rwxr-xr-x

sulution:addedthisentrytoconf/hdfs-site.xml

<property>

<name>dfs.permissions</name>

<value>false</value>

</property>

--------------------------------------------------------------

ERRORorg.apache.hadoop.hdfs.server.namenode.SafeModeException:

Cannotcreate/mapreduce/wordcount/output/1.Namenodeisin

safemode.

代码中添加

conf.set("dfs.permissions","false");

-------------------------------------------------------------

ERRORsecurity.UserGroupInformation:PriviledgedActionExceptionas:bc_qicause:org.apache.hadoop.mapred.FileAlreadyExistsException:Outputdirectory/mapreduce/wordcount/output/1alreadyexists

执行

hadoopfs-rmr/mapreduce/wordcount/output

-------------------------------------------------------------

提示连不上50010端口;

查看是不是防火墙的原因。

照样子添加/etc/sysconfig/iptables端口过滤

------------------------------------------------------------

相关推荐