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
我们需要检查HBase服务是否已经启动。可以通过以下代码来检查
Configuration conf = HBaseConfiguration.create();
HBaseAdmin.checkHBaseAvailable(conf);
我们需要等待HBase服务完全启动。可以使用以下代码等待:
Configuration conf = HBaseConfiguration.create();
HConnection connection = HConnectionManager.createConnection(conf);
Admin admin = connection.getAdmin();
while(!admin.isTableAvailable(tableName)) {
Thread.sleep(1000);
}
admin.close();
connection.close();
举报