Hbase在建立表的時候遇到的問題
阿新 • • 發佈:2019-02-14
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服務