hbaseshell执行创建表时错误
hbase(main):003:0> create 'test','cf'
成都创新互联公司专业为企业提供唐县网站建设、唐县做网站、唐县网站设计、唐县网站制作等企业网站建设、网页设计与制作、唐县企业网站模板建站服务,10余年唐县做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。
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
分享文章:hbaseshell执行创建表时错误
本文URL:http://ybzwz.com/article/ihpgdj.html