hadoop启动错误总结

1.hadoop3: mkdir: cannot create directory `/usr/local/hadoop/bin/../logs': Permission denied
把所有Datanode节点执行下面命令
[hadoop@hadoop3 local]$ chown -R  hadoop:hadoop  hadoop-0.20.2/


2.
2012-08-05 10:52:11,807 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /home/hadoop/namenode is in an inconsistent state: storage directory does not exist or is not accessible.


hadoop配置好之后一定先要格式化,
[hadoop@hadoop1 local]$ hadoop namenode -format


3.
2012-08-05 11:20:40,127 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Call to hadoop1/192.168.127.118:9000 failed on local exception: java.net.NoRouteToHostException: No route to host


关闭防护墙
[hadoop@hadoop1 local]$ chkconfig --level 2345 iptables off
[hadoop@hadoop1 local]$ chkconfig --level 2345 ip6tables off
4
2012-08-05 14:53:50,041 FATAL org.apache.hadoop.mapred.JobTracker: java.lang.RuntimeException: Not a host:port pair: local

仔细检查你的mapred-site.xml文件


5

org.apache.hadoop.security.AccessControlException: Permission denied: user=xxj

在服务端的hdfs-site.xml文件中加入


  dfs.permissions
  false
 




你可能感兴趣的:(hadoop)