• Uncategorized

About linux : Pig-Installation-error-ERROR-pigMain-ERROR-2998-Unhandled-internal-error

Question Detail

ERROR pig.Main: ERROR 2998: Unhandled internal error. com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
WARN pig.Main: There is no log file to write to.
ERROR pig.Main: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V

Above is the pig installation error I got. Any fix?

Question Answer

It is mostly caused due to the ‘Guava jar issue’.

  1. Check ‘Guava’ jar version in Hadoop and Pig.

    ls $PIG_HOME/lib
    ls $HADOOP_HOME/share/hadoop/hdfs/lib

  2. Delete Guava jar in Pig

    rm $PIG_HOME/lib/guava-19.0.jar

  3. Copy Guava jar from Hadoop to Pig

    cp $HADOOP_HOME/share/hadoop/hdfs/lib/guava-27.0-jre.jar $PIG_HOME/lib/

For more info follow this doc, but replace ‘hive’ with ‘pig’ everywhere http://cis.csuohio.edu/~sschung/cis612/CIS612_Lab4_2_Hive_CommonInstallationProblems.pdf

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.