HDFS+Zookeeper+Hbase错误
1、在安装Hbase时报如下错误:
2013-06-13 20:11:34,749 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:48725 (no session established for client)2013-06-13 20:11:34,749 INFO org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster: Started MiniZK Cluster and connect 1 ZK server on client port: 21812013-06-13 20:11:34,879 DEBUG org.apache.hadoop.hbase.master.HMaster: Set serverside HConnection retries=1002013-06-13 20:11:35,400 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start masterjava.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMasterCannot assign requested addressat org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:134)at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:197)at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:147)at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:146)at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2079)Caused by: java.net.BindException: Problem binding to /60.191.124.236:0 : Cannot assign requested addressat org.apache.hadoop.hbase.ipc.HBaseServer.bind(HBaseServer.java:258)at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.<init>(HBaseServer.java:482)at org.apache.hadoop.hbase.ipc.HBaseServer.<init>(HBaseServer.java:1559)at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.<init>(WritableRpcEngine.java:252)at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getServer(WritableRpcEngine.java:201)at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getServer(WritableRpcEngine.java:55)at org.apache.hadoop.hbase.ipc.HBaseRPC.getServer(HBaseRPC.java:330)at org.apache.hadoop.hbase.ipc.HBaseRPC.getServer(HBaseRPC.java:319)at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:306)at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:221)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:131)... 7 moreCaused by: java.net.BindException: Cannot assign requested addressat sun.nio.ch.Net.bind(Native Method)at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)at org.apache.hadoop.hbase.ipc.HBaseServer.bind(HBaseServer.java:256)... 21 more
192.168.16.133 namenode192.168.16.134 datanode1192.168.16.135 datanode2
vi /etc/sysconfig/networkHOSTNAME=namenodeHOSTNAME=datanode1HOSTNAME=datanode2