简体   繁体   中英

Pig Installation error: ERROR pig.Main: ERROR 2998: Unhandled internal error

在此处输入图像描述

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM