web123456

HBase error: KeeperErrorCode = ConnectionLoss for /hbase

Problem description:

Install HBase on stand-alone mode, please refer to the installation steps/cdh5/cdh/5/hbase-0.98.6-cdh5.3.3/book/
After starting HBase, check the log information. The exception information roughly means that it cannot be connectedzookeeperhbaseConnection lost

 

Error message:

2015-12-29 11:11:15,927 INFO  [main] : server localhost:2181 not up : Connection refused

2015-12-29 11:23:43,277 ERROR [main] $HConnectionImplementation: Can't get connection to ZooKeeper: KeeperErrorCode = ConnectionLoss for /hbase

Cause of error:

zookeepernot foundlocalhost:2181This connection

 

Solution:

Need to be in/etc/hosts Configurationlocalhost, the specific configuration is as follows:

127.0.0.1          localhost

Restarthbase, problem solved!