[Solved] Hive Warehouse error: com.google.common.base.Preconditions.checkArgument

Question:

Hive reports an error during initialization

Solution:

After troubleshooting, it is found that the version of guava.jar in hive is inconsistent with that in Hadoop. It is OK to replace it with the same version

cp $HADOOP_HOME/share/hadoop/common/lib/guava-27.0-jre.jar $HIVE_HOME/lib/
rm $HIVE_HOME/lib/guava-19.0.jar

Read More: