hbase shell 执行创建表时错误

hbase(main):003:0> create 'test','cf'


ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet

at org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1879)



查看../hbase0962/logs/目录下的日志文件,发现错误信息为

[hadoop@master hbase0962]$ tail logs/hbase-hadoop-master-master.gzcd.com.log 

2015-04-27 14:08:53,330 INFO  [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...

2015-04-27 14:09:03,336 INFO  [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...

2015-04-27 14:09:13,345 INFO  [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...

2015-04-27 14:09:23,355 INFO  [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...


这是由于hadoop启动是还处在安全模式造成的


[hadoop@master logs]$ cd /app/hadoop/hadoop220/bin/hadoop dfsadmin -safemode get

-bash: cd: /app/hadoop/hadoop220/bin/hadoop: Not a directory

[hadoop@master logs]$ /app/hadoop/hadoop220/bin/hadoop dfsadmin -safemode get

DEPRECATED: Use of this script to execute hdfs command is deprecated.

Instead use the hdfs command for it.


Safe mode is ON


关闭安全模式即可:

[hadoop@master logs]$ /app/hadoop/hadoop220/bin/hadoop dfsadmin -safemode leave

DEPRECATED: Use of this script to execute hdfs command is deprecated.

Instead use the hdfs command for it.


Safe mode is OFF




重新进入hbase shell ,再次执行命令,不再报错!





本文参考链接:http://www.2cto.com/database/201304/206119.html





你可能感兴趣的:(hbase)