HBase基于Hortonworks HDP沙箱:无法从动物园管理员那里获得主地址

时间:2021-09-19 14:59:34

I downloaded HDP 2.1 from hortonworks for virtualbox. I got the following error when using Hbase shell in case simple command: create 't1', {NAME=> 'f1', VERSIONS => 5}

我从hortonworks为virtualbox下载了HDP 2.1。在使用Hbase shell时,我得到了以下错误:创建“t1”,{NAME=> 'f1, version => 5}

Hortonworks “ERROR: Can't get master address from ZooKeeper; znode data == null”

Hortonworks“错误:无法从动物园管理员那里获得主地址;znode数据= = null”

What do I need to do to get hbase working in this sandbox environment?

为了让hbase在这个沙箱环境中工作,我需要做什么?

4 个解决方案

#1


4  

In hortonwork sandbox you have to manually start hbase.

在hortonwork沙箱中,你必须手动启动hbase。

Try to run the following command (as root user),

尝试运行以下命令(作为根用户),

su hbase - -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start master; sleep 20"

su hbase - -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start regionserver"

then run "jps" (as root user too).

然后运行“jps”(作为根用户)。

if you see "HMaster" and "HRegionServer", your hbase is now on.

如果您看到“HMaster”和“HRegionServer”,那么您的hbase现在就启动了。

"hbase shell" again to see if it works.

“hbase shell”再来看看是否有效。

#2


1  

It seems you did not start or even configured HBase in the VM. go into the ambari management console and install/activate HBase

似乎您没有在VM中启动或配置HBase。进入ambari管理控制台并安装/激活HBase。

#3


0  

I have faced same problem in my system:

我的系统遇到了同样的问题:

Root cause: its due to when creating table its point to HDFS namenode (port 9000) Connection refused problem

根本原因:这是因为当创建表时,它的点指向HDFS namenode(端口9000)连接被拒绝的问题

I just formatted the namenode also check connectivity to port 9000 (but its not good in production real time)

我刚刚格式化了namenode并检查了到端口9000的连接(但是在实时生产中并不好)

$hadoop namenode format

after that #start-all.sh

在那之后# start-all.sh

$(HBASE_HOME)/bin/start-hbase.sh

Start habse shell

开始habse壳

Problem will resolve.

问题将会解决。

#4


0  

Had same issue, solved by restarting HBase server manually from the browser.

有同样的问题,通过从浏览器手动重启HBase服务器来解决。

#1


4  

In hortonwork sandbox you have to manually start hbase.

在hortonwork沙箱中,你必须手动启动hbase。

Try to run the following command (as root user),

尝试运行以下命令(作为根用户),

su hbase - -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start master; sleep 20"

su hbase - -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start regionserver"

then run "jps" (as root user too).

然后运行“jps”(作为根用户)。

if you see "HMaster" and "HRegionServer", your hbase is now on.

如果您看到“HMaster”和“HRegionServer”,那么您的hbase现在就启动了。

"hbase shell" again to see if it works.

“hbase shell”再来看看是否有效。

#2


1  

It seems you did not start or even configured HBase in the VM. go into the ambari management console and install/activate HBase

似乎您没有在VM中启动或配置HBase。进入ambari管理控制台并安装/激活HBase。

#3


0  

I have faced same problem in my system:

我的系统遇到了同样的问题:

Root cause: its due to when creating table its point to HDFS namenode (port 9000) Connection refused problem

根本原因:这是因为当创建表时,它的点指向HDFS namenode(端口9000)连接被拒绝的问题

I just formatted the namenode also check connectivity to port 9000 (but its not good in production real time)

我刚刚格式化了namenode并检查了到端口9000的连接(但是在实时生产中并不好)

$hadoop namenode format

after that #start-all.sh

在那之后# start-all.sh

$(HBASE_HOME)/bin/start-hbase.sh

Start habse shell

开始habse壳

Problem will resolve.

问题将会解决。

#4


0  

Had same issue, solved by restarting HBase server manually from the browser.

有同样的问题,通过从浏览器手动重启HBase服务器来解决。