HBASE启动 master: java.net.BindException: Address already in use
master: java.net.BindException: Address already in use
master: at sun.nio.ch.Net.bind0(Native Method)
master: at sun.nio.ch.Net.bind(Net.java:444)
master: at sun.nio.ch.Net.bind(Net.java:436)
master: at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
master: at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
master: at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
master: at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:95)
master: at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:130)
master: at org.apache.hadoop.hbase.zookeeper.HQuorumPeer.runZKServer(HQuorumPeer.java:86)
starting master, logging to /usr/data/hbase/bin/../logs/hbase-grip-master-master.out
master: starting regionserver, logging to /usr/data/hbase/bin/../logs/hbase-grip-regionserver-master.out
1、hbase会自带zookeeper,报错的原因是zookeeper启动冲突了,hbase启动并一起启动zookeeper,这时应该是zookeeper已经启动了,需要停止zookeeper。
2、在hbase-env.sh里面设置HBASE_MANAGES_ZK 改成false 默认是true,先手动启动zookeeper,然后再启动hbase