首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在独立模式下启动Hbase时出现SLF4J错误

在独立模式下启动Hbase时出现SLF4J错误
EN

Stack Overflow用户
提问于 2018-08-13 10:48:56
回答 1查看 767关注 0票数 0

在hbase目录中用./bin/start-hbase.sh启动hbase (处于独立模式)时,

我得到以下错误,

代码语言:javascript
复制
saichanda@saichanda-OptiPlex-9020:/usr/local/hbase$ ./bin/start-hbase.sh 
starting master, logging to /usr/local/hbase/logs/hbase-saichanda-master-saichanda-OptiPlex-9020.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
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.

如何解决此错误?

我的hbase-site.xml文件如下所示:

代码语言:javascript
复制
<configuration>
<property>
    <name>hbase.rootdir</name>
    <value>hdfs://localhost:80/hbase</value>
</property>
<property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>2181</value>
</property>
</configuration>

动物园管理员在跑。在运行hbase时我得到了错误..。

在hbase-env.sh,我有

代码语言:javascript
复制
export HBASE_MANAGES_ZK=false

如何解决启动hbase时的错误??

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-08-13 11:36:02

在hbase-site.xml中给出了错误的配置

代码语言:javascript
复制
<configuration>
    <property>
        <name>hbase.rootdir</name>
        <value>hdfs://localhost:9000/hbase</value>
    </property>
    <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>{absolute_directory_path}</value>
    </property>
    <property>
        <name>hbase.zookeeper.property.clientPort</name>
        <value>2181</value>
    </property>
</configuration>

尝试使用这些值。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51820592

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档