[atguigu@node11 hbase]$ ./bin/start-hbase.sh SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.30.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] SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.30.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] zk2: ssh: Could not resolve hostname zk2: Name or service not known zk3: ssh: Could not resolve hostname zk3: Name or service not known zk1: ssh: Could not resolve hostname zk1: Name or service not known running master, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out : running regionserver, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-regionserver-node11.out有什么问题
时间: 2023-07-12 21:57:31 浏览: 188
slf4j-log4j12-1.7.25-API文档-中文版.zip
5星 · 资源好评率100%
这个错误提示表明有多个SLF4J绑定,导致启动HBase时出现了异常。这个问题是由于Hadoop和HBase等软件包都有自己的SLF4J依赖,导致多个版本的SLF4J库同时存在,从而引发冲突。
解决方法是在HBase的启动脚本中添加以下命令,清除Hadoop的SLF4J依赖:
```
export HBASE_OPTS="-Dhadoop.metrics.log.level=WARN -Dorg.slf4j.simpleLogger.log.org.apache.hadoop=WARN -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog"
```
另外,错误提示中还显示了无法解析zk1、zk2、zk3这几个主机名。这是因为HBase在启动时需要连接ZooKeeper,但是无法解析这几个主机名。需要确认ZooKeeper的主机名配置是否正确,并且确保当前主机可以正常访问这几个主机。可以尝试使用ping命令测试这几个主机是否可达。
阅读全文