重装了hdfs,导致hbase中数据清除,需要重新建表导入数据。
各组件启动成功时,操作hbase
hbase shell
执行create namespaces 命令报错
ERROR: java.io.IOException: Table Namespace Manager not fully initialized, try again later
at org.apache.hadoop.hbase.master.HMaster.checkNamespaceManagerReady(HMaster.java:2693)
at org.apache.hadoop.hbase.master.HMaster.createNamespace(HMaster.java:2862)
at org.apache.hadoop.hbase.master.MasterRpcServices.createNamespace(MasterRpcServices.java:466)
at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:59898)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2150)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:112)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:187)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:167)
zookeeper存储hbase之前的元数据,导致hbase与zookeeper无法对应,无法使用。
进入到zookeeper bin目录
cd /usr/hdp/2.6.2.0-205/zookeeper/bin/
./zkCli.sh
[zk: localhost:2181(CONNECTED) 1] ls /
[cluster, controller_epoch, controller, brokers, storm, zookeeper, admin, isr_change_notification, ambari-metrics-cluster, consumers, config]
[zk: localhost:2181(CONNECTED) 2] rmr /hbase-unsecure