You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by bm...@apache.org on 2011/11/19 02:08:42 UTC
svn commit: r1203934 -
/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh
Author: bmahe
Date: Sat Nov 19 01:08:41 2011
New Revision: 1203934
URL: http://svn.apache.org/viewvc?rev=1203934&view=rev
Log:
BIGTOP-270. Need to create versionless jars for integration point with other projects
Modified:
incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh
Modified: incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh?rev=1203934&r1=1203933&r2=1203934&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh (original)
+++ incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh Sat Nov 19 01:08:41 2011
@@ -269,3 +269,13 @@ rm -fv ${HADOOP_DIR}/*test*.jar
# Install webapps
cp -ra ${BUILD_DIR}/share/hadoop/hdfs/webapps ${HADOOP_DIR}/
+
+# Create version-less symlinks to offer integration point with other projects
+(cd $HADOOP_DIR &&
+for j in hadoop-*.jar; do
+ if [[ $j =~ hadoop-(.*)-${HADOOP_VERSION}.jar ]]; then
+ name=${BASH_REMATCH[1]}
+ ln -s $j hadoop-$name.jar
+ fi
+done)
+