Hbase学习笔记问题总结
Posted ZeroTeam_麒麟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hbase学习笔记问题总结相关的知识,希望对你有一定的参考价值。
遇到问题原因,修改了 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 里面
以上是关于Hbase学习笔记问题总结的主要内容,如果未能解决你的问题,请参考以下文章