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

Eyal Allweil commented on PIG-4450:
-----------------------------------

Following these instructions (and those in the wiki), I am able to setup an 
Eclipse environment without build errors. However, not all the unit tests run 
successfully. For example, when I run the test testAccumWithBuiltinAvg in 
TestAccumulator, it fails with errors. I don't see anything relevant in the 
console logs - a few lines like this one:

2015-05-02 14:46:46,918 ERROR [Thread[Thread-540,5,main]] 
delegation.AbstractDelegationTokenSecretManager 
(AbstractDelegationTokenSecretManager.java:run(659)) - ExpiredTokenRemover 
received java.lang.InterruptedException: sleep interrupted

For what it's worth, this test doesn't run successfully when I run it 
command-line, either, using:

ant -Dtestcase=TestAccumulator clean test

Any ideas? I'm working of a clean trunk, on Ubuntu. Up till now the unit tests 
I needed to run worked, but now I need TestAccumulator to, for 
[https://issues.apache.org/jira/browse/PIG-4365].

> Make Pig Eclipse Setup Easier
> -----------------------------
>
>                 Key: PIG-4450
>                 URL: https://issues.apache.org/jira/browse/PIG-4450
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Anthony Hsu
>
> Using the trunk version of Pig, I had to do much more than listed on 
> https://cwiki.apache.org/confluence/display/PIG/How+to+set+up+Eclipse+environment
>  to get Pig setup and working in Eclipse. I had to do the following:
> # Make sure I'm using Java 7.
> # {{ant clean eclipse-files -Dhadoopversion=23}}
> # {{ant compile gen -Dhadoopversion=23}}
> # In Eclipse, File -> Import -> Existing Projects into Workspace -> Browse to 
> Pig repo -> Finish.
> # Project -> Properties -> Java Build Path -> Source -> Add Folder 
> {{test/perf/pigmix/src/java}}.
> # Project -> Properties -> Java Build Path -> Libraries -> Remove 
> {{javacc-4.2.jar}}.
> # Project -> Properties -> Java Build Path -> Libraries -> Add JAR 
> {{test/perf/pigmix/lib/sdsuLibJKD12.jar}}.
> # Project -> Properties -> Java Build Path -> Libraries -> Add External JAR 
> {{hadoop-yarn-server-applicationhistoryservice\-*.jar}}. (I had to find and 
> download this jar myself. It is needed for running tests.)
> Finally, I was able to build the project without errors and run the tests 
> using JUnit from within Eclipse.
> It would be nice to fix/automate some of these steps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to