gpt4 book ai didi

hadoop - Hbase master 无法启动

转载 作者:可可西里 更新时间:2023-11-01 14:35:03 27 4
gpt4 key购买 nike

我正在尝试启动 hbase master 但出现以下错误:

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.
13/07/14 06:33:23 ERROR master.HMasterCommandLine: Failed to start master
java.io.IOException: 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.
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:134)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1684)
13/07/14 06:33:23 INFO server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:46283 (no session established for client)

hbase-site.xml

<configuration> 
<!-- Changing the default port for REST since it conflicts with yarn nodemanager -->
<property>
<name>hbase.rest.port</name>
<value>8070</value>
<description>The port for the HBase REST server.</description>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8020/hbase</value>
</property>
</configuration>

最佳答案

似乎其他东西已经在使用端口 2181,或者您之前可能已经在此端口上启动了另一个 ZK 实例。停止该进程或更改其端口。如果那不可能,则在 hbase-site.xml 中将 hbase.zookeeper.property.clientPort 设置为 2182

请注意,HBase 需要 ZK 的服务,即使是在独立模式下,因此您应该确保它运行正常。

HTH

关于hadoop - Hbase master 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17638626/

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