cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r1182456 - /cassandra/branches/cassandra-0.8/contrib/pig/bin/pig_cassandra
Date Wed, 12 Oct 2011 16:12:44 GMT
Author: brandonwilliams
Date: Wed Oct 12 16:12:44 2011
New Revision: 1182456

URL: http://svn.apache.org/viewvc?rev=1182456&view=rev
Log:
Fix pig script to only pick up a single pig jar.
Patch by Brian Oneill, reviewed by brandonwilliams for CASSANDRA-3320

Modified:
    cassandra/branches/cassandra-0.8/contrib/pig/bin/pig_cassandra

Modified: cassandra/branches/cassandra-0.8/contrib/pig/bin/pig_cassandra
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/contrib/pig/bin/pig_cassandra?rev=1182456&r1=1182455&r2=1182456&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/contrib/pig/bin/pig_cassandra (original)
+++ cassandra/branches/cassandra-0.8/contrib/pig/bin/pig_cassandra Wed Oct 12 16:12:44 2011
@@ -38,11 +38,15 @@ if [ "x$PIG_HOME" = "x" ]; then
 fi
 
 # pig jar.
-PIG_JAR=$PIG_HOME/pig*.jar
+for jar in $PIG_HOME/*.jar; do
+   PIG_JAR=$jar
+done
+echo "Using $PIG_JAR."
 if [ ! -e $PIG_JAR ]; then
     echo "Unable to locate Pig jar" >&2
     exit 1
 fi
+
 CLASSPATH=$CLASSPATH:$PIG_JAR
 
 export PIG_CLASSPATH=$PIG_CLASSPATH:$CLASSPATH



Mime
View raw message