zoukankan      html  css  js  c++  java
  • Problem binding to [bigdata-server-01:9000] java.net.BindException: Cannot assign requested address;

    If the port is "0", then the OS is looking for any free port -so the port-in-use and port-below-1024 problems are highly unlikely to be the cause of the problem. Hostname confusion and network setup are the likely causes.

     

     http://wiki.apache.org/hadoop/BindException

     

     

     
    
     
    
    [hadoop@bigdata-server-01 ~]$ jps
    27441 NodeManager
    26994 DataNode
    27781 Jps
    27161 SecondaryNameNode
    27323 ResourceManager
    [hadoop@bigdata-server-01 ~]$
    
     
    
    cat hadoop-hadoop-namenode-bigdata-server-01.log
    
     
    
     
    
    2017-11-20 01:54:26,371 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.
    java.net.BindException: Problem binding to [bigdata-server-01:9000] java.net.BindException: Cannot assign requested address; For more details see: http://wiki.apache.org/hadoop/BindException
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
    at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:824)
    at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:735)
    at org.apache.hadoop.ipc.Server.bind(Server.java:561)
    at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:1034)
    at org.apache.hadoop.ipc.Server.<init>(Server.java:2735)
    at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:958)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:420)
    at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:341)
    at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:800)
    at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:431)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:803)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:730)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:953)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:932)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1673)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1741)
    Caused by: java.net.BindException: Cannot assign requested address
    at java.base/sun.nio.ch.Net.bind0(Native Method)
    at java.base/sun.nio.ch.Net.bind(Net.java:433)
    at java.base/sun.nio.ch.Net.bind(Net.java:425)
    at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
    at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at org.apache.hadoop.ipc.Server.bind(Server.java:544)
    ... 13 more
    2017-11-20 01:54:26,374 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1: java.net.BindException: Problem binding to [bigdata-server-01:9000] java.net.BindException: Cannot assign requested address; For more details see: http://wiki.apache.org/hadoop/BindException
    2017-11-20 01:54:26,411 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG: 
    /************************************************************
    SHUTDOWN_MSG: Shutting down NameNode at bigdata-server-01/120.78.187.72
    ************************************************************/
    [hadoop@bigdata-server-01 logs]$ jps
    
     
  • 相关阅读:
    ztree : 增删改功能demo与自定义DOM功能demo的结合
    CF786B Legacy 线段树优化建图
    UVA11992 Fast Matrix Operations 一次开多棵线段树
    P3950 部落冲突 树链剖分
    洛谷P1471 方差 线段树维护区间方差
    2019.7.26 T1 树剖+双标记
    P1505 [国家集训队]旅游
    NOIP2015 运输计划 树上差分+树剖
    P1373 小a和uim之大逃离 四维dp,维护差值
    Pyhton之subprocess模块和configparser模块
  • 原文地址:https://www.cnblogs.com/rsapaper/p/7863688.html
Copyright © 2011-2022 走看看