[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] running master, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out 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

时间: 2023-07-12 21:58:36 浏览: 49
这是一个启动HBase的Shell脚本,在启动的过程中出现了SLF4J绑定的问题。具体的错误信息是Class path contains multiple SLF4J bindings,意思是类路径中包含了多个SLF4J绑定。在这个错误信息中,SLF4J发现了两个绑定,一个在/opt/module/hadoop-3.1.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar中,另一个在/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.30.jar中。SLF4J提供了一个链接http://www.slf4j.org/codes.html#multiple_bindings来解释这个问题。最后,该错误信息指出实际的绑定类型是org.slf4j.impl.Log4jLoggerFactory。
相关问题

[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] mkdir: 无法创建目录"/usr/local/hbase/bin/../logs": 权限不够 running master, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out /usr/local/hbase/bin/hbase-daemon.sh:行195: /usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out: 没有那个文件或目录 head: 无法打开"/usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out" 读取数据: 没有那个文件或目录

这个错误信息显示了多个 SLF4J 绑定的问题,以及一个无法创建目录和找不到日志文件的问题。 针对这些问题,可以尝试以下解决方法: 1. 多个 SLF4J 绑定的问题可以忽略,因为实际绑定的是 Log4jLoggerFactory。 2. 创建目录和日志文件的问题,可能是因为没有写入权限导致的。可以尝试使用 root 用户或者具有写入权限的用户来启动 HBase。 另外,你可以进入 HBase 的 bin 目录下,手动创建 logs 目录,以及在 logs 目录下创建 hbase-atguigu-master-node11.out 文件,然后再次尝试启动 HBase。例如: ``` cd /usr/local/hbase/bin sudo mkdir ../logs sudo touch ../logs/hbase-atguigu-master-node11.out sudo chmod -R 777 ../logs ./start-hbase.sh ``` 如果问题仍然存在,请提供更多信息,我会尽力帮助你解决。

127.0.0.1: running zookeeper, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-zookeeper-node11.out 127.0.0.1: SLF4J: Class path contains multiple SLF4J bindings. 127.0.0.1: 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] 127.0.0.1: SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class] 127.0.0.1: SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 127.0.0.1: SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] running master, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out 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. : running regionserver, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-regionserver-node11.out怎么办

这段日志提示了多个 SLF4J 绑定的问题,可能会导致日志输出异常。建议按照以下步骤进行处理: 1. 找到项目中引入的 SLF4J 相关的依赖,检查是否存在多个版本的 SLF4J 绑定。 2. 如果存在多个版本的绑定,考虑将其中一个版本的依赖排除掉,或者使用 Maven 或 Gradle 等构建工具的 Dependency Management 功能,将所有依赖的 SLF4J 版本统一。 3. 如果无法解决问题,可以参考 SLF4J 的官方文档,进行进一步的调试和处理。

相关推荐

SLF4J: Class path contains multiple SLF4J bindings 是一个常见的错误,它表示在HBase中存在多个SLF4J(Simple Logging Facade for Java)的绑定。这个错误通常是由于引入了多个版本的SLF4J库而导致的。出现这个错误可能会导致一些问题,比如日志输出异常或日志丢失等。 解决这个问题的方法有几种: 1. 确认是否存在多个版本的SLF4J库。可以通过检查HBase的类路径或依赖项中是否存在多个SLF4J库来确定。在引用中的错误信息中可以看到具体的依赖项路径。确保只有一个版本的SLF4J库被引入。 2. 如果存在多个版本的SLF4J库,可以通过在项目的构建文件(如pom.xml)中排除或移除其中一个版本的库来解决冲突。具体的排除或移除方法取决于您使用的构建工具和项目结构。 3. 如果无法解决冲突,还可以尝试将所有的SLF4J库版本统一为同一个版本。这可以通过在项目的构建文件中显式地引入所需的版本来实现。 4. 另外,可以在启动HBase之前,检查系统的环境变量和类路径,确保没有重复引入SLF4J库的路径。 请注意,在解决这个问题之前,建议备份项目和配置文件,以防发生意外情况。另外,确保您的解决方案和步骤与您的具体环境和项目结构匹配。 希望这些方法可以帮助您解决SLF4J: Class path contains multiple SLF4J bindings的问题。如有其他问题,请随时提问。

Warning: No configuration directory set! Use --conf <dir> to override. Info: Including Hadoop libraries found via (/opt/hadoop-3.1.2/bin/hadoop) for HDFS access Info: Including HBASE libraries found via (/opt/hbase-2.2.6/bin/hbase) for HBASE access 错误: 找不到或无法加载主类 org.apache.flume.tools.GetJavaProperty Info: Including Hive libraries found via (/opt/hive-3.1.2) for Hive access + exec /opt/jdk1.8.0_351/bin/java -Xmx20m -cp '/opt/flume-1.9.0/lib/*:/opt/hadoop-3.1.2/etc/hadoop:/opt/hadoop-3.1.2/share/hadoop/common/lib/*:/opt/hadoop-3.1.2/share/hadoop/common/*:/opt/hadoop-3.1.2/share/hadoop/hdfs:/opt/hadoop-3.1.2/share/hadoop/hdfs/lib/*:/opt/hadoop-3.1.2/share/hadoop/hdfs/*:/opt/hadoop-3.1.2/share/hadoop/mapreduce/lib/*:/opt/hadoop-3.1.2/share/hadoop/mapreduce/*:/opt/hadoop-3.1.2/share/hadoop/yarn:/opt/hadoop-3.1.2/share/hadoop/yarn/lib/*:/opt/hadoop-3.1.2/share/hadoop/yarn/*:/opt/hbase-2.2.6/conf:/opt/jdk1.8.0_351//lib/tools.jar:/opt/hbase-2.2.6:/opt/hbase-2.2.6/lib/shaded-clients/hbase-shaded-client-byo-hadoop-2.2.6.jar:/opt/hbase-2.2.6/lib/client-facing-thirdparty/audience-annotations-0.5.0.jar:/opt/hbase-2.2.6/lib/client-facing-thirdparty/commons-logging-1.2.jar:/opt/hbase-2.2.6/lib/client-facing-thirdparty/findbugs-annotations-1.3.9-1.jar:/opt/hbase-2.2.6/lib/client-facing-thirdparty/htrace-core4-4.2.0-incubating.jar:/opt/hbase-2.2.6/lib/client-facing-thirdparty/log4j-1.2.17.jar:/opt/hbase-2.2.6/lib/client-facing-thirdparty/slf4j-api-1.7.25.jar:/opt/hadoop-3.1.2/etc/hadoop:/opt/hadoop-3.1.2/share/hadoop/common/lib/*:/opt/hadoop-3.1.2/share/hadoop/common/*:/opt/hadoop-3.1.2/share/hadoop/hdfs:/opt/hadoop-3.1.2/share/hadoop/hdfs/lib/*:/opt/hadoop-3.1.2/share/hadoop/hdfs/*:/opt/hadoop-3.1.2/share/hadoop/mapreduce/lib/*:/opt/hadoop-3.1.2/share/hadoop/mapreduce/*:/opt/hadoop-3.1.2/share/hadoop/yarn:/opt/hadoop-3.1.2/share/hadoop/yarn/lib/*:/opt/hadoop-3.1.2/share/hadoop/yarn/*:/opt/hadoop-3.1.2/etc/hadoop:/opt/hbase-2.2.6/conf:/opt/hive-3.1.2/lib/*' -Djava.library.path=:/opt/hadoop-3.1.2/lib/native org.apache.flume.node.Application --name a1 --conf/opt/flume-1.9.0/conf --conf-file/opt/flume-1.9.0/conf/dhfsspool.conf-Dflume.root.logger=DEBUG,consol SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/flume-1.9.0/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/hadoop-3.1.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/hive-3.1.2/lib/log4j-slf4j-impl-2.10.0.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] 2023-06-08 17:26:46,403 ERROR node.Application: A fatal error occurred while running. Exception follows. org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: --conf/opt/flume-1.9.0/conf at org.apache.commons.cli.Parser.processOption(Parser.java:363) at org.apache.commons.cli.Parser.parse(Parser.java:199) at org.apache.commons.cli.Parser.parse(Parser.java:85) at org.apache.flume.node.Application.main(Application.java:287)

最新推荐

C#项目点击更改材质球

在Unity项目中使用C#语言制作点击更改材质球效果打码

移动ssh项目(struts+spring+hibernate+oracle).zip

移动ssh项目(struts+spring+hibernate+oracle).zip

chromedriver_win32_103.0.5060.134.zip

chromedriver可执行程序下载,请注意对应操作系统和浏览器版本号,其中文件名规则为 chromedriver_操作系统_版本号,比如 chromedriver_win32_102.0.5005.27.zip表示适合windows x86 x64系统浏览器版本号为102.0.5005.27 chromedriver_linux64_103.0.5060.53.zip表示适合linux x86_64系统浏览器版本号为103.0.5060.53 chromedriver_mac64_m1_101.0.4951.15.zip表示适合macOS m1芯片系统浏览器版本号为101.0.4951.15. chromedriver_mac64_101.0.4951.15.zip表示适合macOS x86_64系统浏览器版本号为101.0.4951.15 chromedriver_mac_arm64_108.0.5359.22.zip表示适合macOS arm64系统浏览器版本号为108.0.5359.22

c语言冒泡排序源码.zip

冒泡法排序c语言程序

rt-thread-code-stm32f405-smdz-breadfruit.rar,SM1432F405 是开发板

SM1432F405 是三木电子推出的一款基于 ARM Cortex-M4 内核的开发板,最高主频为 168Mhz,该开发板配置USB通信接口,SD卡存储接口,io扩展,按键等,方便扩展多种模块。MCU:STM32F405RG,主频 168MHz,1024KB FLASH ,196KB RAM, 本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,并且支持 GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。

基于at89c51单片机的-智能开关设计毕业论文设计.doc

基于at89c51单片机的-智能开关设计毕业论文设计.doc

"蒙彼利埃大学与CNRS联合开发细胞内穿透载体用于靶向catphepsin D抑制剂"

由蒙彼利埃大学提供用于靶向catphepsin D抑制剂的细胞内穿透载体的开发在和CNRS研究单位- UMR 5247(马克斯·穆塞隆生物分子研究专长:分子工程由Clément Sanchez提供于2016年5月26日在评审团面前进行了辩护让·吉隆波尔多大学ARNA实验室CNRS- INSERM教授报告员塞巴斯蒂安·帕波特教授,CNRS-普瓦捷大学普瓦捷介质和材料化学研究所报告员帕斯卡尔·拉斯特洛教授,CNRS-审查员让·马丁内斯蒙彼利埃大学Max Mousseron生物分子研究所CNRS教授审查员文森特·利索夫斯基蒙彼利埃大学Max Mousseron生物分子研究所CNRS教授论文主任让-弗朗索瓦·赫尔南德斯CNRS研究总监-蒙彼利埃大学Max Mousseron生物分子研究论文共同主任由蒙彼利埃大学提供用于靶向catphepsin D抑制剂的细胞内穿透载体的开发在和CNRS研究单位- UMR 5247(马克斯·穆塞隆生物分子研究专长:分子工程由Clément Sanchez提供�

设计一个程序有一个字符串包含n个字符 写一个函数 将此字符串中从第m个字符开始的全部字符复制成为另一个字符串 用指针c语言

以下是用指针实现将字符串中从第m个字符开始的全部字符复制成为另一个字符串的C语言程序: ```c #include <stdio.h> #include <stdlib.h> #include <string.h> void copyString(char *a, char *b, int n, int m); int main() { int n, m; char *a, *b; printf("请输入字符串长度n:"); scanf("%d", &n); a = (char*)malloc(n * sizeof(char)); b =

基于C#多机联合绘图软件的实现-毕业设计论文.doc

基于C#多机联合绘图软件的实现-毕业设计论文.doc

4G车载网络中无线电资源的智能管理

4G车载网络中无线电资源的智能管理汽车网络从4G到5G的5G智能无线电资源管理巴黎萨克雷大学博士论文第580号博士学院博士专业:网络、信息与通信研究单位:巴黎萨克雷大学,UVSQ,LI PARAD,78180,法国伊夫林省圣昆廷参考:凡尔赛大学-伊夫林省圣昆廷论文于11月30日在巴黎萨克雷发表并答辩2021年,由玛丽亚姆·阿卢奇·马迪陪审团组成Pascal Lorenz总裁上阿尔萨斯大学大学教授Mohamed Yacine Ghamri-Doudane拉罗谢尔大学报告员和审查员教授Rami Langar报告员和审查员马恩河谷大学Oyunchimeg SHAGDARVEDECOM研发(HDR)团队负责人审查员论文方向Samir TOHME博士生导师巴黎萨克雷大学名誉教授UVSQ/LI- PARADKALLEL KHEMIRI共同监督巴黎萨克雷UVSQ/大卫Guy Pujolle受邀索邦大学Tara Yahiya邀请巴黎萨克雷大学/LISN高级讲师(HDR)博士论文NNT:2021UPASG061谢谢你首先,我要感谢我的论文导师M.萨米�