[ https://issues.apache.org/jira/browse/PIG-3249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13603946#comment-13603946 ]
Prashant Kommireddi commented on PIG-3249: ------------------------------------------ Thanks Daniel, that's a nice approach. {code} # fall back to use fat pig.jar if [ -f $PIG_HOME/pig.jar ]; then PIG_JAR=$PIG_HOME/pig.jar else PIG_JAR=`echo $PIG_HOME/pig-?.!(*withouthadoop).jar` fi if [ -n "$PIG_JAR" ]; then CLASSPATH="${CLASSPATH}:$PIG_JAR" else echo "Cannot locate pig.jar. do 'ant jar', and try again" exit 1 fi if [ "$debug" == "true" ]; then echo "Cannot find local hadoop installation, using bundled `java -cp $PIG_JAR org.apache.hadoop.util.VersionInfo | head -1`" fi {code} Please note I have placed the debug statement below the code that looks for pig jar. It makes sense that the debug statements execute only after pig jar is found. Do you agree? I will upload the patch shortly. > Pig startup script prints out a wrong version of hadoop when using fat jar > -------------------------------------------------------------------------- > > Key: PIG-3249 > URL: https://issues.apache.org/jira/browse/PIG-3249 > Project: Pig > Issue Type: Bug > Affects Versions: 0.11 > Reporter: Prashant Kommireddi > Labels: newbie > Fix For: 0.12 > > > Script suggests 0.20.2 is used with the bundled jar but we are using 1.0 at > the moment. > {code} > # fall back to use fat pig.jar > if [ "$debug" == "true" ]; then > echo "Cannot find local hadoop installation, using bundled hadoop > 20.2" > fi > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira