Hbase运行时出现的问题(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.)及其解决方法:

    运行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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值