Website content quality is poor, distribution efficiency is too low how to do?Huawei engineers offer 5 unique skills>>>

Error message prompted:

SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Exception in thread "main" java.lang.NoSuchMethodError:;Ljava/lang/Object;)V
        at org.apache.hadoop.conf.Configuration.set(
        at org.apache.hadoop.conf.Configuration.set(
        at org.apache.hadoop.mapred.JobConf.setJar(
        at org.apache.hadoop.mapred.JobConf.setJarByClass(
        at org.apache.hadoop.mapred.JobConf.<init>(
        at org.apache.hadoop.hive.conf.HiveConf.initialize(
        at org.apache.hadoop.hive.conf.HiveConf.<init>(
        at org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(
        at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(
        at org.apache.hadoop.hive.cli.CliDriver.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.util.RunJar.main(

The key point is: This is because the version of guava.jar in hive is inconsistent with that in Hadoop. Test method:

Check the guava.jar version in share/Hadoop/common/Lib in the Hadoop installation directory

Check the version of guava.jar in lib under hive installation directory. If the two versions are inconsistent, delete the lower version and copy the higher version to solve the problem

But I found out later that there were other problems

Other versions of guava can be downloaded from the MVN repository

Reference link:

Similar Posts: