[
https://issues.apache.org/jira/browse/PIG-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bernd Fondermann updated PIG-2095:
----------------------------------
Description:
bin/pig contains this loop:
141 # libraries in the lib dir, so don't blindly add them all. Only add the
one
142 # that matche PIG_HADOOP_VERSION.
143 for f in $PIG_HOME/lib/*.jar; do
144 IS_HADOOP=`echo $f | grep hadoop`
...
153 done
IS_HADOOP is always true if pig is installed in a directory containing the
phrase "hadoop", like "/home/hadoop/pig-8.1.0/"
as a consequence, all lib/ jars are dropped from the classpath.
was:
bin/pig contains this loop:
# add libs to CLASSPATH. There can be more than one version of the hadoop
141 # libraries in the lib dir, so don't blindly add them all. Only add the
one
142 # that matche PIG_HADOOP_VERSION.
143 for f in $PIG_HOME/lib/*.jar; do
144 IS_HADOOP=`echo $f | grep hadoop`
...
153 done
IS_HADOOP is always true if pig is installed in a directory containing the
phrase "hadoop", like "/home/hadoop/pig-8.1.0/"
as a consequence, all lib/ jars are dropped from the classpath.
> pig start script doesn't collect libs properly when "hadoop" is part of
> PIG_HOME
> --------------------------------------------------------------------------------
>
> Key: PIG-2095
> URL: https://issues.apache.org/jira/browse/PIG-2095
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.8.1
> Environment: pig is installed in a directory containing the phrase
> "hadoop"
> Reporter: Bernd Fondermann
>
> bin/pig contains this loop:
> 141 # libraries in the lib dir, so don't blindly add them all. Only add the
> one
> 142 # that matche PIG_HADOOP_VERSION.
> 143 for f in $PIG_HOME/lib/*.jar; do
> 144 IS_HADOOP=`echo $f | grep hadoop`
> ...
> 153 done
> IS_HADOOP is always true if pig is installed in a directory containing the
> phrase "hadoop", like "/home/hadoop/pig-8.1.0/"
> as a consequence, all lib/ jars are dropped from the classpath.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira