You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2011/03/17 18:00:29 UTC

[jira] Updated: (PIG-536) the shell script 'pig' does not work if PIG_HOME has the word 'hadoop' in it's directory, and pig script is missing in the types branch

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

Olga Natkovich updated PIG-536:
-------------------------------

    Fix Version/s: 0.9.0

> the shell script 'pig' does not work if PIG_HOME has the word 'hadoop' in it's directory, and pig script is missing in the types branch
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-536
>                 URL: https://issues.apache.org/jira/browse/PIG-536
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt
>    Affects Versions: 0.1.0
>            Reporter: Ian Holsman
>             Fix For: 0.9.0
>
>
> ran into this one today when running from user 'hadoop' whoose home directory is /home/hadoop/
> also for some reason this script isn't in the pig-types branch..
> Index: bin/pig
> ===================================================================
> --- bin/pig	(revision 711801)
> +++ bin/pig	(working copy)
> @@ -124,7 +124,8 @@
>  # libraries in the lib dir, so don't blindly add them all.    Only add the one
>  # that matche PIG_HADOOP_VERSION.
>  for f in $PIG_HOME/lib/*.jar; do
> -    IS_HADOOP=`echo $f | grep hadoop`
> +    FILENAME=`basename $f`
> +    IS_HADOOP=`echo $FILENAME | grep hadoop`
>      if [ "${IS_HADOOP}x" == "x" ]; then
>          CLASSPATH=${CLASSPATH}:$f;
>      else 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira