進入hive報錯信息以下html
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]
緣由apache
hive和hadoop中的SLF4J的jar包重複了oop
路徑分別在spa
/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
刪除一個便可,建議刪除低版本的3d