嘿,我按照这里的步骤操作:http : //wiki.apache.org/pig/PiggyBank 来构建 piggybank jar,但我不断得到下面的输出。我还从源代码构建了 pig 项目,并在我的 .bash_profile 中引用了它:
cloudera@cloudera-demo:~/piggybank/java$ ./makepiggy.sh
Buildfile: /home/cloudera/piggybank/java/build.xml
download-hive-deps:
init:
compile:
[echo] *** Compiling Pig UDFs ***
[javac] /home/cloudera/piggybank/java/build.xml:100: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 153 source files to /home/cloudera/piggybank/java/build/classes
BUILD FAILED
/home/cloudera/piggybank/java/build.xml:100: /home/build/ivy/lib does not exist.
这是我的 bash_profile:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22
export CLASSPATH=$CLASSPATH:/home/cloudera/pig/trunk/pig.jar
** 更新 ** Wiki 页面上的文档不正确,现在看来是正确的:http ://wiki.apache.org/pig/PiggyBank
按照新的说明,你应该没问题