Error Messages:
Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1380)
…
at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
Cause:
The two guava.jar versions of hadoop and hive are inconsistent
The two locations are located in the following two directories.
– /usr/local/hive/lib/
– /usr/local/hadoop/share/hadoop/common/lib/
Solution:
Delete the lower version and copy the higher version to the lower version directory
Similar Posts:
- Java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument
- “Execution error, return code 1 from org. Apache. Hadoop. Hive. QL. Exec. Movetask” error occurred when hive imported data locally
- [How to Solve] Hive: Unsupported major.minor version 51.0
- [Solved] Hadoop running jar package error: xception in thread “main” java.lang.ClassNotFoundException: Filter
- Flume + HDFS startup error [Four Errors & How to Solve]
- Hive connection HBase external table error, can’t get the locations
- [Solved] Hadoop Error: Input path does not exist: hdfs://Master:9000/user/hadoop/input
- Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- Apache Ranger integrates hive error records [How to Solve]
- Hive Error: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask