在运行hbase操作时出现错误:ERROR: Can‘t get master address from ZooKeeper; znode data == null

在运行hbase操作时出现错误:ERROR: Can’t get master address from ZooKeeper; znode data == null,可能是ZooKeeper不稳定导致的

hbase(main):003:0> status

ERROR: Can't get master address from ZooKeeper; znode data == null

Here is some help for this command:
Show cluster status. Can be 'summary', 'simple', 'detailed', or 'replication'. The
default is 'summary'. Examples:

  hbase> status
  hbase> status 'simple'
  hbase> status 'summary'
  hbase> status 'detailed'
  hbase> status 'replication'
  hbase> status 'replication', 'source'
  hbase> status 'replication', 'sink'

处理方法是重启hbase:
需要切换到存放hbase/bin目录下,运行

stop-hbase.sh
start-hbase.sh

你可能感兴趣的:(大数据,hbase,zookeeper,数据库)