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

Alan Gates commented on PIG-115:
--------------------------------

I found the cause for both the reduplication and the failure to run.

The reduplication is caused by line 50: bin=`cd "$bin"; pwd`

In my bash (Red Hat Linux) if CDPATH is set, then cd returns the name of the 
directory it is switching to.  This causes the above line to print the name of 
the directory you're switching to twice.  So the line should be changed to 
something like:  bin=`unset CDPATH; cd "$bin"; pwd`  

The failure comes from a  couple of issues:

1) Line 110, which reads:  "for f in $PIG_HOME/pig-*-core.jar; do" should 
instead read "for f in $PIG_HOME/build/pig-*-core.jar; do", as the pig jars are 
in the build directory, not the top directory.

2) pig-*-core.jar does not contain all the necessary classes, or perhaps the 
classpath is otherwise deficient.  When I changed the line 110 to reference the 
jar in the build directory, I get:

2008-03-04 12:49:15,036 [main] INFO  
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to 
hadoop file system at: wilbur20.labs.corp.sp1.yahoo.com:8020
2008-03-04 12:49:15,280 [main] ERROR org.apache.pig.Main - 
org.apache.pig.backend.executionengine.ExecException: Failed to create 
DataStorage

If I change the line to instead read:  "for f in $PIG_HOME/build/pig-*.jar; do" 
then it all works.



> start script for pig
> --------------------
>
>                 Key: PIG-115
>                 URL: https://issues.apache.org/jira/browse/PIG-115
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Stefan Groschupf
>         Attachments: PIG-115_v_1.patch, PIG-115_v_2.patch, PIG-115_v_3.patch
>
>
> The current pig.pl is very y! specific, a generic start script is required 
> that works for all users.
> Goal of this issue is to collect a list requirements a new script has to 
> fulfill.

-- 
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