[
https://issues.apache.org/jira/browse/PIG-2599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503317#comment-13503317
]
major seitan commented on PIG-2599:
-----------------------------------
As maven is biased towards having one src directory
the shims used to support hadoop23 and hadoop20
most likely have to be changed. I would like to
recommend the refactoring the shims to be maven sub
projects corresponding to implementations needed for
the hadoop versions. (e.g.).
pig-hadoop23
pig-hadoop20
The following context with be placed in the main
pig project
{code:title=ShimContext.java|borderStyle=solid}
ShimContext {
// handle the reflection errors
private static final IShimFactory SHIM_FACTORY =
Class.forName("org.apache.pig.backend.hadoop.executionengine.shims.ShimFactoryImpl").newInstance();
static IShimFactory getInstance(){ return SHIM_FACTORY; }
}
{code}
And each project will have its own ShimFactoryImpl implementating
IShimFactory. Where IShimFactory gives access to the the implementations
of the classes (and inner classes) :
PigJobControl
PigMapReduce
PigMapBase
HadoopShims
This is a substantial change so I would need some consensus/direction on how
best to proceed.
> Mavenize Pig
> ------------
>
> Key: PIG-2599
> URL: https://issues.apache.org/jira/browse/PIG-2599
> Project: Pig
> Issue Type: New Feature
> Components: build
> Reporter: Daniel Dai
> Labels: gsoc2012
>
> Switch Pig build system from ant to maven.
> This is a candidate project for Google summer of code 2012. More information
> about the program can be found at
> https://cwiki.apache.org/confluence/display/PIG/GSoc2012
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira