You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org> on 2011/08/02 21:38:27 UTC

[jira] [Commented] (PIG-2200) Piggybank build error

    [ https://issues.apache.org/jira/browse/PIG-2200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078389#comment-13078389 ] 

Dmitriy V. Ryaboy commented on PIG-2200:
----------------------------------------

Here's a log that demonstrates the problem and the solution. 

Before:
{code}

tw-mbp13-dryaboy:java dmitriy$ pwd
/Users/dmitriy/src/pig-git/contrib/piggybank/java
tw-mbp13-dryaboy:java dmitriy$ ant
Buildfile: /Users/dmitriy/src/pig-git/contrib/piggybank/java/build.xml

download-hive-deps:
      [get] Getting: http://archive.apache.org/dist/hadoop/hive/hive-0.4.1/hive-0.4.1-bin.tar.gz
      [get] To: /Users/dmitriy/src/pig-git/contrib/piggybank/java/lib/hive-0.4.1-bin.tar.gz
      [get] Error getting http://archive.apache.org/dist/hadoop/hive/hive-0.4.1/hive-0.4.1-bin.tar.gz to /Users/dmitriy/src/pig-git/contrib/piggybank/java/lib/hive-0.4.1-bin.tar.gz

BUILD FAILED
/Users/dmitriy/src/pig-git/contrib/piggybank/java/build.xml:151: java.io.FileNotFoundException: /Users/dmitriy/src/pig-git/contrib/piggybank/java/lib/hive-0.4.1-bin.tar.gz (No such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
	at org.apache.tools.ant.taskdefs.Get$GetThread.downloadFile(Get.java:739)
	at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:586)
	at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:569)

Total time: 0 seconds
{code}

After:

{code}

tw-mbp13-dryaboy:java dmitriy$ ant
Buildfile: /Users/dmitriy/src/pig-git/contrib/piggybank/java/build.xml

download-hive-deps:
      [get] Getting: http://archive.apache.org/dist/hadoop/hive/hive-0.4.1/hive-0.4.1-bin.tar.gz
      [get] To: /Users/dmitriy/src/pig-git/contrib/piggybank/java/lib/hive-0.4.1-bin.tar.gz
      [get] ....................................................
      [get] ....................................................
      [get] ....................................................
      [get] ....................................................
      [get] ....................................................
      [get] ....................................................
      [get] ....................................................
{code}

I for some reason can't make a patch that just adds an empty directory, so I am going to go ahead and just do that directly on the repo. Cool?

> Piggybank build error
> ---------------------
>
>                 Key: PIG-2200
>                 URL: https://issues.apache.org/jira/browse/PIG-2200
>             Project: Pig
>          Issue Type: Bug
>         Environment: Mac OS, Java 1.6, and 1.8.2
>            Reporter: Dmitriy V. Ryaboy
>
> Piggybank can't be built from trunk because the download-hive-deps task fails.
> This is caused by a missing lib/ directory in contrib/piggybank/java/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira