incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bm...@apache.org
Subject svn commit: r1203934 - /incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh
Date Sat, 19 Nov 2011 01:08:42 GMT
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)
+



Mime
View raw message