[
https://issues.apache.org/jira/browse/PIG-4450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14564876#comment-14564876
]
Michael Howard commented on PIG-4450:
-------------------------------------
Fri 29 May 2015
Current trunk version is:
URL: http://svn.apache.org/repos/asf/pig/trunk
Revision: 1682438
The following changes should be made to:
https://cwiki.apache.org/confluence/display/PIG/How+to+set+up+Eclipse+environment
Generate Eclipse Files
-----
should say:
ant clean -Dhadoopversion=23 eclipse-files
If you do not say "-Dhadoopversion=23" then you you get a bunch of Tez-related
errors. This seems to be caused by finding an old version of FileInputFormat
from hadoop-core-1.0.4.jar instead of hadoop-common-2.6.0.jar
Pre-compile and generate sources
---
This should say "Generate sources & pre-compile" ... we need to generate source
code before we compile.
This should also define hadoopversion=23
ant -Dhadoopversion=23 gen compile
Import Pig project into Eclipse
-----
...
Step 9. 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.)
Step 9 should be deleted.
This step is no longer necessary ... ant eclipse-files now includes
hadoop-yar-server-applicationhistoryservice-2.6.0.jar
I would be willing to make these changes to the wiki page if a 'space
administrator' grants me edit permission.
> 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)