You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Rekha Joshi (JIRA)" <ji...@apache.org> on 2013/11/25 10:55:37 UTC

[jira] [Updated] (PIG-2095) pig start script doesn't collect libs properly when "hadoop" is part of PIG_HOME

     [ https://issues.apache.org/jira/browse/PIG-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rekha Joshi updated PIG-2095:
-----------------------------

    Attachment: PIG-2095_1.patch

> 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
>              Labels: newbie
>         Attachments: PIG-2095_1.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.1#6144)