无法建立存钱罐->/home/build/ivy/lib不存在 [英] Unable to build piggybank -> /home/build/ivy/lib does not exist
问题描述
嘿,我在这里按照以下步骤操作: http://wiki.apache.org/pig/PiggyBank 来建立储钱罐,但我不断得到下面的输出.我还从源代码构建了Pig项目,并在.bash_profile中引用了该项目:
hey all I followed the steps here: http://wiki.apache.org/pig/PiggyBank to build the piggybank jar but I keep getting the output below. I also built the pig project from source and reference that in my .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:
here is my 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
** UPDATE ** The docs were incorrect on the Wiki page, they appear to be correct now: http://wiki.apache.org/pig/PiggyBank
按照新说明进行操作,就可以了
follow the new instructions and you should be fine
推荐答案
文档在Wiki页面上不正确,现在看来是正确的: http://wiki.apache.org/pig/PiggyBank
The docs were incorrect on the Wiki page, they appear to be correct now: http://wiki.apache.org/pig/PiggyBank
按照新说明进行操作,就可以了
follow the new instructions and you should be fine
为Pig源代码创建目录:mkdir pig
Create a directory for the Pig source code: mkdir pig
cd进入该目录:cd pig
cd into that directory: cd pig
检出Pig源代码:svn检出 http://svn.apache.org/repos/asf/pig/trunk/.
Checkout the Pig source code: svn checkout http://svn.apache.org/repos/asf/pig/trunk/ .
构建项目:蚂蚁
进入存钱罐目录cd:cd contrib/piggybank/java
cd into the piggybank dir: cd contrib/piggybank/java
建立储钱罐:蚂蚁 现在,您应该在该目录中看到一个piggybank.jar文件.
Build the piggybank: ant You should now see a piggybank.jar file in that directory.
这篇关于无法建立存钱罐->/home/build/ivy/lib不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!