hadoop@mtt-VirtualBox:/usr/local/hive$ ./bin/hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hive/闪电b/log4j-slf4j-impl-2.10.0.jar!/org/扇脸f4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/握手/hadoop/common/闪电b/扇脸f4j-log4j12-1.7.25.jar!/org/扇脸f4j/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]
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
根据错误信息,这是由于类路径中存在多个 SLF4J 绑定导致的,你可以尝试卸载重复的 jar 包或调整类路径来解决此问题。
另外,出现 NoSuchMethodError 异常可能是由于依赖库版本不兼容造成的,你可以检查依赖库的版本是否匹配。在这个错误信息中,这个异常是由于 Guava 库版本不匹配导致的。