[
https://issues.apache.org/jira/browse/PIG-3261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13613616#comment-13613616
]
Prashant Kommireddi commented on PIG-3261:
------------------------------------------
I am actually happy with this patch. Looking through hadoop JIRAs,
documentation and comments in bin/hadoop script I could not clearly comprehend
the reason for existence of the prop HADOOP_USER_CLASSPATH_FIRST. Making sure
we don't miss it here if there's a legit reason, otherwise PIG_CLASSPATH is set
generally when a user has certain custom jar/classpath requirements. Like you
said, I don't think a user would set PIG_CLASSPATH but want default CLASSPATH
to have a precedence.
> User set PIG_CLASSPATH entries must be prepended to the CLASSPATH, not
> appended
> -------------------------------------------------------------------------------
>
> Key: PIG-3261
> URL: https://issues.apache.org/jira/browse/PIG-3261
> Project: Pig
> Issue Type: Bug
> Components: grunt
> Affects Versions: 0.10.0
> Reporter: Harsh J
> Assignee: Harsh J
> Attachments: PIG-3261.patch
>
>
> Currently we are doing this wrong:
> {code}
> if [ "$PIG_CLASSPATH" != "" ]; then
> CLASSPATH=${CLASSPATH}:${PIG_CLASSPATH}
> {code}
> This means that anything added to CLASSPATH until that point will never be
> able to get overridden by a user set environment, which is wrong behavior.
> Hadoop libs for example are added to CLASSPATH, before this extension is
> called in bin/pig.
--
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