Hadoop错误日志整理及解决方法
现象:3个节点,启动之后namenode报错,且存活节点( Live Nodes )只显示1个
2013-05-14 20:01:09,839 INFO org.apache.hadoop.ipc.Server: IPC Server handler 9 on 9000: starting
2013-05-14 20:01:13,659 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.io.IOException: File /home/hadoop/bigdata/hadoop-1.0.4/hadoopdata/mapreduce/system/jobtracker.info could only be replicated to 0 nodes, instead of 1
2013-05-14 20:01:13,660 INFO org.apache.hadoop.ipc.Server: IPC Server handler 0 on 9000, call addBlock(/home/hadoop/bigdata/hadoop-1.0.4/hadoopdata/mapreduce/system/jobtracker.info, DFSClient_1548490558, null) from 172.16.201.170:60801: error: java.io.IOException: File /home/hadoop/bigdata/hadoop-1.0.4/hadoopdata/mapreduce/system/jobtracker.info could only be replicated to 0 nodes, instead of 1
java.io.IOException: File /home/hadoop/bigdata/hadoop-1.0.4/hadoopdata/mapreduce/system/jobtracker.info could only be replicated to 0 nodes, instead of 1
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1558)
at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:696)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)
解决方案:
关闭防火墙:sudo ufw disable