ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
hbase shell
hbase> shell?
Error:?org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
Hbase單節點
請問如何解決?
hbase shell
hbase> shell?
Error:?org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
Hbase單節點
請問如何解決?
2021-04-29
舉報
2023-11-02
我們需要檢查HBase服務是否已經啟動。可以通過以下代碼來檢查
Configuration conf = HBaseConfiguration.create();
HBaseAdmin.checkHBaseAvailable(conf);
我們需要等待HBase服務完全啟動??梢允褂靡韵麓a等待:
Configuration conf = HBaseConfiguration.create();
HConnection connection = HConnectionManager.createConnection(conf);
Admin admin = connection.getAdmin();
while(!admin.isTableAvailable(tableName)) {
? ? Thread.sleep(1000);
}
admin.close();
connection.close();