incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1189378 - /incubator/bigtop/trunk/bigtop-packages/src/common/pig/install_pig.sh
Date Wed, 26 Oct 2011 18:52:31 GMT
Author: rvs
Date: Wed Oct 26 18:52:31 2011
New Revision: 1189378

URL: http://svn.apache.org/viewvc?rev=1189378&view=rev
Log:
BIGTOP-161. the new layout that Pig script adopted needs to be worked around

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/common/pig/install_pig.sh

Modified: incubator/bigtop/trunk/bigtop-packages/src/common/pig/install_pig.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/pig/install_pig.sh?rev=1189378&r1=1189377&r2=1189378&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/common/pig/install_pig.sh (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/common/pig/install_pig.sh Wed Oct 26 18:52:31
2011
@@ -120,7 +120,7 @@ ln -s /etc/pig/conf $LIB_DIR/conf
 install -d -m 0755 $BIN_DIR
 cat > $BIN_DIR/pig <<EOF
 #!/bin/sh
-
+. /etc/default/hadoop
 exec $INSTALLED_LIB_DIR/bin/pig "\$@"
 EOF
 chmod 755 $BIN_DIR/pig
@@ -134,6 +134,8 @@ install -d -m 0755 $DOC_DIR
 
 install -d -m 0755 $EXAMPLES_DIR
 (cd $LIB_DIR ; mv pig*withouthadoop.jar `echo pig*withouthadoop.jar | sed -e 's#withouthadoop#core#'`)
+# FIXME: workaround for BIGTOP-161
+(cd $LIB_DIR ; ln -s pig-*-core.jar pig-withouthadoop.jar)
 PIG_JAR=$(basename $(ls $LIB_DIR/pig*core.jar))
 sed -i -e "s|../pig.jar|/usr/lib/pig/$PIG_JAR|" $BUILD_DIR/tutorial/build.xml
 (cd $BUILD_DIR/tutorial && tar -cf - .)|(cd $EXAMPLES_DIR && tar -xf -)



Mime
View raw message