错误表现: SLF4J: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/learn/Java/maven/repository_taotao.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/learn/Java/maven/repository_taotao.../org/slf4j/impl/StaticLoggerBinder.class] 解决方案: 可以转到pom.xml,打开Dependency Hierarchy并找到slf4j条目。
1:Hbase启动hbase shell运行命令报Class path contains multiple SLF4J bindings.错误,是因为jar包冲突了,所以对于和hadoop的jar包冲突的...SLF4J: Class path contains multiple SLF4J bindings....SLF4J: Found binding in [jar:file:/home/hadoop/soft/hbase-0.98.6-cdh5.3.6/lib/slf4j-log4j12-1.7.5.jar.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/hadoop/soft/hadoop-.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
2018-04-27 17:31:43.248 org.slf4j.helpers.Util report System.err: SLF4J: Class path contains multiple...SLF4J bindings. 2018-04-27 17:31:43.250 org.slf4j.helpers.Util report System.err: SLF4J: Found binding.../org/slf4j/impl/StaticLoggerBinder.class] 2018-04-27 17:31:43.250 org.slf4j.helpers.Util report System.err...: SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 2018-04-27 17:31:43.640.../org/slf4j/impl/StaticLoggerBinder.class] 解决方案: 移除其中一个jar包即可。
: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings.
: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...(1)大多数能够正常打印log机器的out文件输出是: SLF4J: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...log的机器的out文件输出是: SLF4J: Class path contains multiple SLF4J bindings.
: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings.
: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings....列出Sentry中的角色 [root@cdh01 kafka]# kafka-sentry -lr SLF4J: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings.
/hive-log4j.properties SLF4J: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/software/apache-hive-1.1.1.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings.../hive-log4j.properties SLF4J: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
初始化数据库 [root@node ~]# schematool -initSchema -dbType mysql SLF4J: Class path contains multiple SLF4J...bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
contains multiple SLF4J bindings....contains multiple SLF4J bindings....contains multiple SLF4J bindings....contains multiple SLF4J bindings....contains multiple SLF4J bindings.
SLF4J: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/F:/maven-jar-repository/.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] .... .......org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class
: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
\bin\start-hbase.cmd 排坑: 启动HBase时出现SLF4J: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings....SLF4J: Found binding in [jar:file:/E:/soft_work/hbase-2.0.2/lib/slf4j-log4j12-1.7.25.jar!.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/E:/soft_work/hadoop-2.6.0.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
配置Hive集成ldap 添加相关配置,保存并重启 用ldap用户hive登录,可以登录成功 [root@cdh1 ~]# beeline SLF4J: Class path contains multiple...SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...SLF4J: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
: Class path contains multiple SLF4J bindings..../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...: Class path contains multiple SLF4J bindings....创建表格进行测试 hadoop@Master:~$ hive SLF4J: Class path contains multiple SLF4J bindings....: Class path contains multiple SLF4J bindings.
启动程序 1 [yun@mini01 ~]$ start-hbase.sh 2 SLF4J: Class path contains multiple SLF4J bindings. 3 SLF4J.../org/slf4j/impl/StaticLoggerBinder.class] 5 SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...master, logging to /app/hbase/logs/hbase-yun-master-mini01.out 8 SLF4J: Class path contains multiple.../org/slf4j/impl/StaticLoggerBinder.class] 11 SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings...: Class path contains multiple SLF4J bindings. 4 SLF4J: Found binding in [jar:file:/app/hbase-2.0.0/
SLF4J: Class path contains multiple SLF4J bindings....SLF4J: Found binding in [jar:file:/C:/Users/Administrator/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/Administrator/....m2/repository/org/slf4j/slf4j-jdk14/1.6.6/slf4j-jdk14-1.6.6.jar!.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
配置HBASE_HOME环境变量 [root@repo ~]# vim /etc/profile export HBASE_HOME=/opt/hbase-1.2.6 export PATH=$PATH...测试能否进去hbase命令行 [root@repo ~]# hbase shell SLF4J: Class path contains multiple SLF4J bindings....SLF4J: Found binding in [jar:file:/opt/hbase-1.2.6/lib/slf4j-log4j12-1.7.5.jar!.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/hadoop-2.7.4/share/hadoop.../org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
Either remove Logback or the competing implementation SLF4J: Class path contains multiple SLF4J bindings.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/jack/.m2/repository.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/jack/.m2/repository.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/jack/.m2/repository.../org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
领取专属 10元无门槛券
手把手带您无忧上云