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

来源:互联网 发布:windows编程视频 编辑:程序博客网 时间:2024/05/16 19:45

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

    运行hbase时出现下面问题:

    [hadoop@Masterpc hadoop]$ hbase shell

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

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

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操作:显示正常工作

[hadoop@Masterpc ~]$ hbase shell

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

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

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

 

hbase(main):001:0> status

3 servers, 0 dead, 0.6667 average load

 

hbase(main):002:0> list

TABLE                                                                                                                                 

0 row(s) in 0.4720 seconds

 

hbase(main):005:0> create 'tab1','fam1'  

0 row(s) in 1.7840 seconds

 

hbase(main):006:0> list

TABLE                                                                                                                                 

tab1                                                                                                                                  

1 row(s) in 0.0530 seconds

0 0
原创粉丝点击