You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Michael Howard (JIRA)" <ji...@apache.org> on 2015/03/06 20:08:38 UTC
[jira] [Commented] (PIG-4450) Make Pig Eclipse Setup Easier
[ https://issues.apache.org/jira/browse/PIG-4450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14350735#comment-14350735 ]
Michael Howard commented on PIG-4450:
-------------------------------------
Thank you so much for posting this.
I am a Pig newbie and have spent much of this week struggling (& failing) to get Pig to compile in Eclipse.
These steps worked fine for me.
As a stopgap measure someone should update
https://cwiki.apache.org/confluence/display/PIG/How+to+set+up+Eclipse+environment
to point to this jira ticket
FYI: The path(rathole) that I ran down was related to IvyDE ...
> 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 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)