Hive客户端启动报SLF4J: Class path contains multiple SLF4J bindings.
使用Hive客户端的时候,如果不注意细节,那么会遇到一个问题:重复打印输出SLF4J信息
文章目录
- 1、出现的问题
- 2、根本原因
- 3、解决方法
- 4、查看最终效果
- 5、PS:hive日志在哪呐?
1、出现的问题
[root@hadoop11 lib]# hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/datafs/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/datafs/hadoop/hadoop-3.1.1/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.apache.logging.slf4j.Log4jLoggerFactory]
which: no hbase in (/datafs/zookeeper/bin:/datafs/zookeeper/conf:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.aarch64/bin:/datafs/hadoop/hadoop-3.1.1/bin:/datafs/hadoop/hadoop-3.1.1/sbin:/datafs/hadoop/hadoop-3.1.1/libexec:/datafs/hive/bin:/datafs/sqoop-1.4.7.bin__hadoop-2.6.0/bin:/root/bin)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/datafs/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/datafs/hadoop/hadoop-3.1.1/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.apache.logging.slf4j.Log4jLoggerFactory]
Hive Session ID = cb494b0f-cab0-467b-b217-2388d307df78Logging initialized using configuration in file:/datafs/hive/conf/hive-log4j2.properties Async: true
Hive Session ID = e75c9708-c257-461f-a740-621d0ec15c92
Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
hive> [root@hadoop11 lib]#
如果使用过程中没出上述报错,可以把这个问题可以忽略
2、根本原因
log4j-slf4j-impl-2.10.0.jar
这个 jar包没有干掉
3、解决方法
干掉 log4j-slf4j-impl-2.10.0.jar
[root@hadoop11 lib]# mv log4j-slf4j-impl-2.10.0.jar log4j-slf4j-impl-2.10.0.jar.bak
4、查看最终效果
[root@hadoop139 lib]# hive
which: no hbase in (/datafs/zookeeper/bin:/datafs/zookeeper/conf:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.aarch64/bin:/datafs/hadoop/hadoop-3.1.1/bin:/datafs/hadoop/hadoop-3.1.1/sbin:/datafs/hadoop/hadoop-3.1.1/libexec:/datafs/hive/bin:/datafs/sqoop-1.4.7.bin__hadoop-2.6.0/bin:/root/bin)
Hive Session ID = 3d4539f8-c091-4d52-935f-af592ece0335Logging initialized using configuration in file:/datafs/hive/conf/hive-log4j2.properties Async: true
Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
Hive Session ID = da41b52a-d740-4dc5-bd73-45f696ef7ea2
hive> [root@hadoop139 lib]#
其实还是有点问题,不过这个hive跟hbase没多大关系,暂时忽略就OK了,
主要是把日志那一块去掉了
5、PS:hive日志在哪呐?
/datafs/hive/conf/hive-log4j2.properties
这个文件是配置hive日志存放目录
${sys:java.io.tmpdir}/${sys:user.name}
默认存放目录
可以找到hive日志文件
做技术,一定要严谨!!!
Hive客户端启动报SLF4J: Class path contains multiple SLF4J bindings.相关推荐
- Tomcat启动log:SLF4J: Class path contains multiple SLF4J bindings.
近期启动tomcat时,看到如下输出信息: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [j ...
- SLF4J: Class path contains multiple SLF4J bindings(log4j与logback冲突了)
当你启动service或者web项目的时候,出现了如下详细地异常,那说明你配置的log4j与logback jar包发生了冲突: <span style="color:#ff0000& ...
- SLF4J: Class path contains multiple SLF4J bindings. 问题原因及解决方法。
问题 springboot项目,使用了slf4j,当引入zookeeper之后,就会报错: SLF4J: Class path contains multiple SLF4J bindings. SL ...
- SLF4J: Class path contains multiple SLF4J bindings.
库冲突导致的异常,由于多次引入SLF4j包导致. It seems you have several implementation of SLF4J; you should exclude all t ...
- springboot 关于 Class path contains multiple SLF4J bindings.警告的解决
springboot 关于 Class path contains multiple SLF4J bindings.警告的解决 有一次配置好springboot项目启动后,忽然发现有下边的警告: SL ...
- 客户端启动报错java.lang.IllegalArgumentException: no server available的解决方案 SpringCloud中 Nacos做注册中心
客户端启动报错java.lang.IllegalArgumentException: no server available的解决方案 SpringCloud中 Nacos做注册中心(谷粒) 报错内容 ...
- frpc windows客户端启动报EOF的问题
frpc windows客户端使用启动命令./frpc.exe -c ./frpc.ini启动时会报错EOF,如下图 此时查看frpc.log日志,可以发现报错为 也就是连接frps服务端失败了 可以 ...
- Hive启动报错 java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang
Hive启动报错 [lili@hadoop102 hive]$ bin/hive which: no hbase in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/b ...
- centos7 hive启动报错 没有到主机的路由,防火墙已关闭
问题 hive启动报错,防火墙已关闭 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at org.datanucl ...
最新文章
- 添加打印机还显示脱机_win7系统电脑连接打印机后显示脱机怎么办
- 数据库配置,参考django框架,采用嵌套的字典实现
- 关于 OData 协议的数据类型 - SAP gateway 框架是如何解析数据类型的?
- SQL注入——基于联合查询的字符型GET注入(三)
- TabError的解决方法
- 事务消息和普通消息的区别
- linux screen 命令是 ssh 的有效补充
- 初恋为何成为最美的爱情(下)
- 关于setInterval设置倒计时只执行一次,clearInterval停止
- 央行超级网银8月上线 第三方支付平台或暂停接入
- 测试用例设计方法——正交表详解
- 1、RH850时钟源及配置
- VMware Workstation 虚拟机中的 虚拟机访问物理机(仅主机模式)
- CCSV5菜单栏中没有Tools按钮,如何显示出来?
- Ubuntu14.04+Texlive2014+LYX-Linux下LYX的中文配置方案
- 演讲如何克服紧张情绪
- 关于量纲分析的一点体会
- python bokeh 3d_Python数据可视化:基于Bokeh的可视化绘图
- DPCRN: Dual-Path Convolution Recurrent Network for Single Channel Speech Enhancement---论文翻译
- android微信怎么建群,微信可以建群吗 图文教你微信怎么建群