gpt4 book ai didi

hbase - 无法启动 HBase 单机模式

转载 作者:行者123 更新时间:2023-12-02 04:36:53 25 4
gpt4 key购买 nike

我正在阅读 HBase 快速入门指南 ( http://hbase.apache.org/book/quickstart.html ),在完成第一步时我遇到了很多问题。

我在 VirtualBox 下使用 Mint Linux 13,以 Win7 作为主机。

我下载了 hbase 0.94.6.1,将文件解压到我的主路径上,配置了环回地址。我可以出于测试目的写入/tmp,因此我没有修改/conf/hbase-site.xml。

start-hbase.sh: 45: [: false: unexpected operator
localhost: starting zookeeper, logging to /home/askldjd/hbase-0.94.6.1/bin/../logs/hbase-askldjd-zookeeper-test-hadoop.out
starting master, logging to /home/askldjd/hbase-0.94.6.1/bin/../logs/hbase-askldjd-master-test-hadoop.out
Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
localhost: starting regionserver, logging to /home/askldjd/hbase-0.94.6.1/bin/../logs/hbase-askldjd-regionserver-test-hadoop.out

如果我输入 ./bin/hbase shell,并输入 status,这就是我得到的内容。

13/04/05 01:47:06 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

JAVA_HOME 已配置。

askldjd@test-hadoop ~ $ echo $JAVA_HOME
/usr/lib/jvm/java-6-openjdk-amd64/

我认为我在这里遗漏了一些非常基本的东西。任何帮助将不胜感激。

谢谢

...艾伦

最佳答案

根据日志消息,在默认端口(2181)启动zookeeper时出现一些问题

“无法在请求的端口 2181 启动 ZK。”

检查2181端口上是否有其他进程正在运行,如果有,请停止2181端口上运行的进程后尝试启动hbase。

否则

您可以单独运行zookeeper并告诉hbase使用它。

要使 hbase 使用单独运行的 Zookeeper,必须进行以下更改

  • conf/hbase-env.sh 中的 HBASE_MANAGES_ZK 变量必须设置为 false(这告诉 hbase 不要启动自己的 Zookeeper 集合)

  • 在conf/hbase-site.xml中设置zookeeper值及其端口

    <property>
    <name>hbase.zookeeper.quorum</name>
    <value>localhost</value>
    </property>

    <property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
    </property>

请参阅以下链接来配置和运行zookeeper:

http://zookeeper.apache.org/doc/r3.3.3/zookeeperStarted.html#sc_InstallingSingleMode

关于hbase - 无法启动 HBase 单机模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15826863/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com