There could be a mismatch with the one configured in the master.

版权声明:君若不学,则何以成?本文为博主原创文章,欢迎转载(记得注明出处)。 https://blog.csdn.net/hu_belif/article/details/82711935

每天更新报错,今天报错:

ERROR [main] client.ConnectionImplementation: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

这个报错很好解决,首先检查一下hbase,因为报错提示我节点不在zookeeper上,因此,如果启动了zookeeper,就先关闭zookeeper的服务,再次启动。(单机版不需要zookeeper的,只有分布式需要zookeeper进行消息通信)

若没有有效解决,那看后半句错误:

There could be a mismatch with the one configured in the master.

Hbase运行时出现的问题(There could be a mismatch with the one configured in the master.):

详细报错:

    [hadoop@Masterpc hadoop]$ hbase shell

HBase Shell; enter 'help<RETURN>' for list of supported commands.

Type "exit<RETURN>" to leave the HBase Shell

扫描二维码关注公众号,回复: 3246483 查看本文章

Version 0.94.12, r1524863, Fri Sep 20 04:44:41 UTC 2013

hbase(main):001:0> status

15/03/10 11:19:04 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

15/03/10 11:19:06 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

 。。。。。。。(省)

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times

Here is some help for this command:

Show cluster status. Can be 'summary', 'simple', or 'detailed'. The

default is 'summary'. Examples:

  hbase> status

  hbase> status 'simple'

  hbase> status 'summary'

  hbase> status 'detailed'

 一种解决方法:查看占用端口2181的进程;

然后把占用的进程删除,然后重新启动;

之后分别进行:

[hadoop@Masterpc ~]$ start-all.sh   启动hadoop

[hadoop@Masterpc ~]$ start-hbase.sh   启动hbase

最后进行hbase操作:显示正常工作。

搞定。。。。。

猜你喜欢

转载自blog.csdn.net/hu_belif/article/details/82711935