进入hbase shell之后,执行list命令,报错如下
1
|
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.
|
查看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查看端口被占用情况
2、杀死占用端口的进程
3、重新启动hbase,进入shell,执行list命令
本文转自巧克力黒 51CTO博客,原文链接:http://blog.51cto.com/10120275/1637616,如需转载请自行联系原作者