[
https://issues.apache.org/jira/browse/PIG-3880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13977498#comment-13977498
]
David Medinets commented on PIG-3880:
-------------------------------------
I tried to add the commons-io to my classpath. I got the same error. Here is
the dry run showing the jar file in the path.
$ pig
dry run:
HADOOP_CLASSPATH:
/home/566453/pig/conf:/usr/java/jdk1.7.0_09/lib/tools.jar:/opt/accumulo/lib/accumulo-core-1.4.2.jar:/opt/accumulo/lib/libthrift-0.6.1.jar:/opt/accumulo/lib/cloudtrace-1.4.2.jar:/opt/zookeeper/zookeeper-3.3.3.jar:/home/566453/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/home/566453/pig/build/ivy/lib/Pig/jython-standalone-2.5.3.jar:/home/566453/pig/build/ivy/lib/Pig/jruby-complete-1.6.7.jar:/home/566453/pig/pig-withouthadoop.jar:
HADOOP_OPTS: -Xmx1000m -Dpig.log.dir=/home/566453/pig/logs
-Dpig.log.file=pig.log -Dpig.home.dir=/home/566453/pig
/opt/hadoop/bin/hadoop jar /home/566453/pig/pig-withouthadoop.jar
I tried both commons-io 1.4 and 2.1. I checked that the class is in the jar:
$ jar tf .m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar | grep
ClassLoaderObjectInputStream
org/apache/commons/io/input/ClassLoaderObjectInputStream.class
Anything else I can try?
> After compiling trunk, I am seeing ClassLoaderObjectInputStream
> ClassNotFoundException.
> ---------------------------------------------------------------------------------------
>
> Key: PIG-3880
> URL: https://issues.apache.org/jira/browse/PIG-3880
> Project: Pig
> Issue Type: Bug
> Components: grunt
> Affects Versions: 0.13.0
> Reporter: David Medinets
>
> I pulled trunk from subversion using the following commands:
> mkdir pig
> cd pig
> svn co http://svn.apache.org/repos/asf/pig/trunk
> cd trunk
> ant
> export PATH=$PATH:$HOME/pig/trunk/bin
> export ACCUMULO_HOME=/opt/accumulo
> export HADOOP_HOME=/opt/hadoop
> export PIG_HOME=$HOME/pig/trunk
> export PIG_CLASSPATH="$HOME/pig/trunk/build/ivy/lib/Pig/*"
> export PIG_CLASSPATH="$ACCUMULO_HOME/lib/*:$PIG_CLASSPATH"
> cd ~
> pig
> Then I ran into this error:
> java.lang.NoClassDefFoundError:
> org/apache/commons/io/input/ClassLoaderObjectInputStream
> at org.apache.pig.Main.run(Main.java:399)
> When I change PIG_JAR to use the fat jar, I was able to run the pig command
> without getting the exception.
--
This message was sent by Atlassian JIRA
(v6.2#6252)