hbase(main):001:0> create 'student','Sname','Ssex','Sage','Sdept','course'
ERROR: Can't get master address from ZooKeeper; znode data == null
Here is some help for this command:
Creates a table. Pass a table name, and a set of column family
specifications (at least one), and, optionally, table configuration.
Column specification can be a simple string (name), or a dictionary
(dictionaries are described below in main help output), necessarily
including NAME attribute.
ERROR: Can't get master address from ZooKeeper; znode data == null
Here is some help for this command:
Creates a table. Pass a table name, and a set of column family
specifications (at least one), and, optionally, table configuration.
Column specification can be a simple string (name), or a dictionary
(dictionaries are described below in main help output), necessarily
including NAME attribute.
-------------------------------------------------------------------------------------------------------------
此问题是:
一般式由于zookeeper引起的,通常这种情况是由于你正在运行一个进程正在操作hbase数据库的时候,hbase进程被杀掉或hbase服务被停掉所引起的,比如电脑处于待机或者锁屏状态,都有可能杀掉hbase服务的进程。
解决方法:
重启hbase服务:
先关闭:
bin/stop-hbase.sh
在开启:
bin/start-hbase.sh
如果你处于hbase shell状态下:
输入 exit退出之后再重启hbase服务