进入hive报错信息如下
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/program/apache-hive-3.1.2-bin/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/program/hadoop-3.2.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和hadoop中的SLF4J的jar包重复了
路径分别在
/program/apache-hive-3.1.2-bin/lib/
/program/hadoop-3.2.1/share/hadoop/common/lib/
rm -rf slf4j-log4j12-1.7.25.jar
删除一个即可,建议删除低版本的