Permalink
Browse files

Removed the massive Pig core. Replaced with Dev-core. Cannot run Pig …

…directly now, need to set $PIG_HOME
  • Loading branch information...
1 parent 2c86009 commit d74a474c945c98dacf1f751163f7242dec31ab81 @rsumbaly rsumbaly committed Jun 11, 2010
View
@@ -53,6 +53,6 @@
<classpathentry kind="lib" path="lib/jackson-core-asl-1.4.0.jar"/>
<classpathentry kind="lib" path="lib/avro-modified-jdk5-1.3.0.jar"/>
<classpathentry kind="lib" path="contrib/krati/lib/krati-0.3.3.jar"/>
- <classpathentry kind="lib" path="contrib/hadoop/lib/pig-0.7.0-core.jar"/>
+ <classpathentry kind="lib" path="contrib/hadoop/lib/pig-0.7.1-dev-core.jar"/>
<classpathentry kind="output" path="classes"/>
</classpath>
@@ -35,6 +35,18 @@ do
CLASSPATH=$CLASSPATH:$file
done
+if [ "x$PIG_HOME" = "x" ]; then
+ echo 'Please set PIG_HOME'
+ exit 1
+fi
+
+JAR=$PIG_HOME/pig.jar
+if [ ! -e $JAR ]; then
+ echo 'Could not find Pig jar'
+ exit 1
+fi
+CLASSPATH=$CLASSPATH:$JAR
+
export CLASSPATH
-java -Xmx4G $PIG_JAVA_OPTS -Dudf.import.list=voldemort.hadoop.pig -cp $CLASSPATH org.apache.pig.Main $*
+java $PIG_JAVA_OPTS -Dudf.import.list=voldemort.hadoop.pig -cp $CLASSPATH org.apache.pig.Main $*
Binary file not shown.
Binary file not shown.

0 comments on commit d74a474

Please sign in to comment.