如何解决“未能加载类” org.slf4j.impl.staticloggerbinder&quot”启动HBase

发布于 2025-01-28 05:30:22 字数 1048 浏览 2 评论 0原文

我尝试通过命令start-hbase.sh启动我的HBase群集。我得到了错误的错误:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/michael/opt/modules/hbase/hbase-2.4.11/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/michael/opt/modules/hadoop/hadoop-3.3.2/share/hadoop/common/lib/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.Reload4jLoggerFactory]

然后我通过JPS检查,HBASE没有任何进程。然后,我删除文件/home/michael/opt/modules/hbase/hbase/hbase-2.4.11/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar > start-hbase.sh 再次。这次我遇到了错误,

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation

我正在使用HBase2.4.11和Hadoop3.3.2。如何解决此错误?谢谢!

I try to start my hbase cluster by command start-hbase.sh. I got follow errors:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/michael/opt/modules/hbase/hbase-2.4.11/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/michael/opt/modules/hadoop/hadoop-3.3.2/share/hadoop/common/lib/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.Reload4jLoggerFactory]

Then I check by jps, there is no any process about hbase. Then I delete the file /home/michael/opt/modules/hbase/hbase-2.4.11/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar and run start-hbase.sh again. This time I got error

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation

I'm using hbase2.4.11 and hadoop3.3.2. How can I resolve this error? Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听风念你 2025-02-04 05:30:22

好的,这只是一个警告,我只是跳过它!

OK, it's just an warning, I just skip it!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文