进入hbase shell之后,执行list命令,报错如下

15/04/23 15:24:31 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

Check the value configured in 'zookeeper.znode.parent'_第1张图片

查看Hbase下的logs目录,查看了其输出的日志信息
Could not start ZK at requested port of 2181. ZK was started at port:2182. Aborting as clients(e.g. shell) will not be able to find this ZK quorum.

怀疑Zookeeper默认端口2181被占用,

1、使用命令lsof -i:2181查看端口被占用情况

Check the value configured in 'zookeeper.znode.parent'_第2张图片

2、杀死占用端口的进程

3、重新启动hbase,进入shell,执行list命令

Check the value configured in 'zookeeper.znode.parent'_第3张图片