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服务

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值