NameNode中的BIND异常

时间:2014-09-07 06:25:07

标签: java hadoop

获得此例外:

    2014-09-06 23:14:04,906 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode:       Exception in namenode join
java.net.BindException: Problem binding to [master:54310] java.net.BindException: Cannot assign requested address; For more details see:  http://wiki.apache.org/hadoop/BindException
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:719)
        at org.apache.hadoop.ipc.Server.bind(Server.java:422)
        at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:534)
        at org.apache.hadoop.ipc.Server.<init>(Server.java:2203)
        at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:897)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:505)
        at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:480)
        at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:742)
        at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:273)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:510)

这是netstat的输出:     [hduser @ xyz hadoop] $ netstat -anl | grep 54310

tcp        0      0 10.0.112.61:54310           0.0.0.0:*                   LISTEN

tcp        0      0 10.0.112.61:54310           10.0.112.61:55878           ESTABLISHED

tcp        0      0 10.0.112.61:54310           198.245.16.35:43071         ESTABLISHED

tcp        0      0 10.0.112.61:55878           10.0.112.61:54310           ESTABLISHED

这是/ etc / hosts

127.0.0.1               localhost.localdomain localhost

::1             localhost6.localdomain6 localhost6

198.245.16.35 slave

10.0.112.61 master

我在Red Hat Linux上使用hadoop-2.2.0。

在其他地方,我读到在格式化名称节点(http://comments.gmane.org/gmane.comp.java.hadoop.mapreduce.user/7275)时应该运行日志节点。

有人可以澄清一下日志节点的用途吗? 任何帮助表示赞赏。

0 个答案:

没有答案