sq331335144 发表于 2013-10-25 10:45:19

datanode启动报createSocketAddr错误原因

2010-09-30 16:42:00,017 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting DataNode
STARTUP_MSG:   host = hadoop192-168-0-150/192.168.0.150
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 0.20.1
STARTUP_MSG:   build = http://svn.apache.org/repos/asf/ ... /release-0.20.1-rc1 -r 810220; compiled by 'oom' on Tue Sep1 20:55:56 UTC 2009
************************************************************/
2010-09-30 16:42:00,126 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.lang.NullPointerException
at org.apache.hadoop.net.NetUtils.
createSocketAddr
(NetUtils.java:134)
at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:156)
at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:160)
at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:246)
at org.apache.hadoop.hdfs.server.datanode.DataNode.(DataNode.java:216)
at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1283)
at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1238)
at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1246)
at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1368)
2010-09-30 16:42:00,127 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at hadoop192-168-0-150/192.168.0.150
************************************************************/
原因是datanode上的fs.default.name没有设置,正确设置后解决,如:hdfs://192.168.0.149:9999
页: [1]
查看完整版本: datanode启动报createSocketAddr错误原因