Hortonworks HDP Sandbox 上的 HBase:无法从 ZooKeeper 获取主地址 [英] HBase on Hortonworks HDP Sandbox: Can't get master address from ZooKeeper

查看:51
本文介绍了Hortonworks HDP Sandbox 上的 HBase:无法从 ZooKeeper 获取主地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 hortonworks 为 virtualbox 下载了 HDP 2.1.在使用 Hbase shell 的情况下使用简单命令时出现以下错误:create 't1', {NAME=> 'f1', VERSIONS => 5}

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 错误:无法从 ZooKeeper 获取主地址;znode 数据 == 空"

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

我需要做什么才能让 hbase 在这个沙盒环境中工作?

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

推荐答案

在 hortonwork 沙箱中,您必须手动启动 hbase.

In hortonwork sandbox you have to manually start hbase.

尝试运行以下命令(以root用户身份),

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"

然后运行jps"(也以 root 用户身份).

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

如果您看到HMaster"和HRegionServer",则您的 hbase 现已开启.

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

再次hbase shell"看看它是否有效.

"hbase shell" again to see if it works.

这篇关于Hortonworks HDP Sandbox 上的 HBase:无法从 ZooKeeper 获取主地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆