[ 
https://issues.apache.org/jira/browse/PIG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846226#action_12846226
 ] 

Alan Gates commented on PIG-1293:
---------------------------------

Allen,

I'm having trouble reproducing this issue, so I'm not sure how to test your 
fix.  If I take top of trunk and install it, then do:

{code}
gates> echo $PIG_HOME

gates> PATH=/usr/bin:/usr/local/bin:/bin:./bin which pig
/home/gates/tmp/pig-0.7.0-dev/bin/pig
gates> PATH=/usr/bin:/usr/local/bin:/bin:./bin pig -x local 
~/pig/scripts/Checkin_2.local.pig
10/03/16 17:09:24 INFO pig.Main: Logging error messages to: 
/home/gates/tmp/pig-0.7.0-dev/pig_1268784564902.log
2010-03-16 17:09:25,205 [main] INFO  
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to 
hadoop file system at: file:///
2010-03-16 17:09:26,047 [main] WARN  org.apache.pig.PigServer - Encountered 
Warning IMPLICIT_CAST_TO_INT 2 time(s).
...
{code}

What am I doing wrong here?

> pig wrapper script tends to fail if pig is in the path and PIG_HOME isn't set
> -----------------------------------------------------------------------------
>
>                 Key: PIG-1293
>                 URL: https://issues.apache.org/jira/browse/PIG-1293
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Allen Wittenauer
>         Attachments: PIG-1293.txt
>
>
> If PIG_HOME isn't set and pig is in the path, the pig wrapper script can't 
> find its home.  Setting PIG_HOME makes it hard to support multiple versions 
> of pig. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to