pig-0.8.1-SNAPSHOT.jar, pig-0.8.1-core.jar, pig.jar should be the same. I am not sure why there is a minor difference in size, might caused by building environment. pig-0.8.1-SNAPSHOT-core.jar is the minimum jar contains only pig classes.
Daniel 2011/7/31 Fang Fang FF Chen <[email protected]> > Daniel Dai, thank you for your response. > I run "ant jar" and get the following jar balls: > -rw-r--r-- 1 root root 2241400 Jul 31 19:21 pig-0.8.1-SNAPSHOT-core.jar > -rw-r--r-- 1 root root 11139523 Jul 31 19:21 pig-0.8.1-SNAPSHOT.jar > > Here is the original jar balls in the package: > -rw-rw-r-- 1 root root 11139500 Apr 18 19:30 pig-0.8.1-core.jar > -rw-r--r-- 1 root root 11139523 Jul 31 19:21 pig.jar > My question is: > What is the difference between pig*-core.jar and pig*.jar in the original > package? > What is the difference between pig-0.8.1-SNAPSHOT-core.jar and > pig-0.8.1-SNAPSHOT.jar generated by "ant jar"? > Why the size of pig-0.8.1-SNAPSHOT-core.jar and pig.core is different? > Is pig-0.8.1-SNAPSHOT.jar and pig.jar the same jar ball? > > > > Thanks. > Regards, > FangFang CHEN / 陈芳芳 > ---------------------------------- > BigInsights Team, CDL > Phone: 86-10-82453744 > ---------------------------------- > > > > [image: Inactive hide details for Daniel Dai ---2011-07-30 > 01:49:53---2011/7/28 Fang Fang FF Chen <[email protected]>]Daniel Dai > ---2011-07-30 01:49:53---2011/7/28 Fang Fang FF Chen <[email protected]> > > > *Daniel Dai <[email protected]>* > > 2011-07-30 01:48 > Please respond to > [email protected] > > > > To > > [email protected] > cc > > > Subject > > Re: pig-0.8.1:about pig.pom file and pig-0.8.1/build/ivy/lib/Pig directory > > 2011/7/28 Fang Fang FF Chen <[email protected]> > > > Hello, > > I am using pig-0.8.1 and I am confused about the following sides. Please > > help to check this problems and give me some suggestion. Thank you. > > > > Question 1: > > I found some dependency jar balls in file: /pig-0.8.1/ivy/pig.pom. > > *My question is: what will these jar balls be used for(compile, build, > > package or during run pig script)? Thank you.* > > After decompress pig-0.8.1.tar.gz, we would run: > > ant compile, > > ant jar, > > ant package, > > ant test and so on. > > *Are the dependency jar balls in pom.jar will be used during run all the > > upper commands? Thank you.* > > > > For compiling and building. We also pack some of those jars into pig.jar. > > > Question 2: > > After run "ant compile", I found plenty of jar balls in directory: > > pig-0.8.1/build/ivy/lib/Pig. > > *My question is: are all the jar balls will be used during "ant > compile"?* > > *And during run pig script(pig runtime), which jar ball will be > necessary? > > Thank you.* > > > > Some jars are dependencies of other jars (hadoop pulls lots of > dependencies), which might not directly used by Pig. During the runtime, we > only use pig.jar (or pig-withouthadoop.jar), none of the jars in > build/ivy/lib/Pig will be used. This may change in the future. > > > > > Question 3: > > For Pig-0.7.0, I found these jar balls at pig-0.7.0/lib directory: > > > > So I think these jar balls are necessary for pig script running and only > > these jar balls are needed during run pig script. *Is this correct?* > > In pig-0.8.1, I found only antomaton.jar was listed in lib directory. *I > > think during pig runtime, there should be other jar balls which are > needed. > > If this is correct, should we put other jar balls into lib directory by > > ourselves? And what are the other jar balls? Thank you.* > > > Those libs is only used in compiling/building time. Pig do not need these > jars at runtime. > > > Thanks. > > Regards, > > FangFang CHEN / 陈芳芳 > > ---------------------------------- > > BigInsights Team, CDL > > Phone: 86-10-82453744 > > ---------------------------------- > > > > > >
