hbase shell 輸入命令出錯
阿新 • • 發佈:2018-11-19
好久沒用hbase了,啟動hbase,進入shell,輸入命令:list,報錯:
ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2289)
at org.apache.hadoop.hbase.master.MasterRpcServices.getTableNames(MasterRpcServices.java:899)
at org.apache.hadoop.hbase.protobuf.generated.MasterProtos
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2178)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:112)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
at java.lang.Thread.run(Thread.java:745)
Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:
hbase> list
hbase> list ‘abc.*’
hbase> list ‘ns:abc.*’
hbase> list ‘ns:.*’
這是時間沒有同步,將所有節點時間同步後,
sudo service ntpd restart;sudo chkconfig ntpd on;
關閉hbase:stop-hbase.sh
重新啟動hbase:start-hbase.sh,即可
解決。。。