- 启动hbase后:
执行命令:hbase(main):004:0> create 'zhh','cf'
出现如下错误:
<span style="font-size:12px;">ERROR: java.io.IOException: Table Namespace Manager not ready yet, try again later
at org.apache.hadoop.hbase.master.HMaster.getNamespaceDescriptor(HMaster.java:3187)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1743)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1782)
at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:40470)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2012)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98)
at org.apache.hadoop.hbase.ipc.FifoRpcScheduler$1.run(FifoRpcScheduler.java:73)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)</span>
2.错误原因及解决方法:
这个问题是从单机配置到多机配置的时候出的问题。当不使用hbase自带的zookeeper时。修改conf/hbase-env.sh 注释掉export HBASE_MANAGES_ZK=true 。重新启动hbase即可。