Hbase學習筆記問題總結

Zero麒麟發表於2017-04-04

遇到問題原因,修改了 network

2017-04-04 16:45:54,556 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMasterCannot assign requested address
        at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:143)
        at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:215)
        at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:153)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:189)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:139)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
        at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2060)
Caused by: java.net.BindException: Problem binding to /69.172.201.153:0 : Cannot assign requested address
        at org.apache.hadoop.hbase.ipc.RpcServer.bind(RpcServer.java:2374)
        at org.apache.hadoop.hbase.ipc.RpcServer$Listener.<init>(RpcServer.java:528)
        at org.apache.hadoop.hbase.ipc.RpcServer.<init>(RpcServer.java:1902)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:845)
        at org.apache.hadoop.hbase.master.MasterRpcServices.<init>(MasterRpcServices.java:204)
        at org.apache.hadoop.hbase.master.HMaster.createRpcServices(HMaster.java:494)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:504)
        at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:347)
        at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:271)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:139)
        ... 7 more
Caused by: java.net.BindException: Cannot assign requested address
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.apache.hadoop.hbase.ipc.RpcServer.bind(RpcServer.java:2372)
        ... 20 more

解決方案

Hosts沒有配置對映
將最新設定的Hostname名稱配置到 /etc/hosts 裡面

相關文章