Hbase在创建表的时候遇到的问题,hbase创建表遇到
hbase(main):001:0> create 'student','Sname','Ssex','Sage','Sdept','course'ERROR: Can't get master address from ZooKeeper; znode data == null
Here is some help for this command:
Creates a table. Pass a table name, and a set of column family
specifications (at least one), and, optionally, table configuration.
Column specification can be a simple string (name), or a dictionary
(dictionaries are described below in main help output), necessarily
including NAME attribute.
-------------------------------------------------------------------------------------------------------------
此问题是:
一般式由于zookeeper引起的,通常这种情况是由于你正在运行一个进程正在操作hbase数据库的时候,hbase进程被杀掉或hbase服务被停掉所引起的,比如电脑处于待机或者锁屏状态,都有可能杀掉hbase服务的进程。
解决方法:
重启hbase服务:
先关闭:
bin/stop-hbase.sh
在开启:
bin/start-hbase.sh
如果你处于hbase shell状态下:
输入 exit退出之后再重启hbase服务
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。