incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bm...@apache.org
Subject svn commit: r1197861 - /incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/install_hadoop.sh
Date Sat, 05 Nov 2011 01:27:27 GMT
Author: bmahe
Date: Sat Nov  5 01:27:26 2011
New Revision: 1197861

URL: http://svn.apache.org/viewvc?rev=1197861&view=rev
Log:
Fix hadoop libraries in Hadoop 0.23

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=1197861&r1=1197860&r2=1197861&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  5 01:27:26 2011
@@ -134,6 +134,7 @@ INSTALLED_HADOOP_DIR=${INSTALLED_HADOOP_
 HADOOP_BIN_DIR=${HADOOP_DIR}/bin
 HADOOP_SBIN_DIR=${HADOOP_DIR}/sbin
 HADOOP_LIB_DIR=${HADOOP_DIR}/lib
+HADOOP_NATIVE_LIB_DIR=${HADOOP_LIB_DIR}/native
 
 HADOOP_VERSION=0.23.0-SNAPSHOT
 
@@ -162,22 +163,33 @@ cp ${BUILD_DIR}/sbin/* ${HADOOP_SBIN_DIR
 # jars
 install -d -m 0755 ${HADOOP_LIB_DIR}
 cp ${BUILD_DIR}/lib/*.jar ${HADOOP_LIB_DIR}/
+cp ${BUILD_DIR}/share/hadoop/common/lib/*.jar ${HADOOP_LIB_DIR}/
+cp ${BUILD_DIR}/share/hadoop/hdfs/lib/*.jar ${HADOOP_LIB_DIR}/
+chmod 644 ${HADOOP_LIB_DIR}/*.jar
 
 # hadoop jar
 install -d -m 0755 ${HADOOP_DIR}
 cp ${BUILD_DIR}/modules/*.jar ${HADOOP_DIR}/
+cp ${BUILD_DIR}/share/hadoop/common/*.jar ${HADOOP_DIR}/
+cp ${BUILD_DIR}/share/hadoop/hdfs/*.jar ${HADOOP_DIR}/
 chmod 644 ${HADOOP_DIR}/*.jar
 
 # native libs
 install -d -m 0755 ${SYSTEM_LIB_DIR}
+install -d -m 0755 ${HADOOP_NATIVE_LIB_DIR}
 cp ${BUILD_DIR}/lib/*.a ${SYSTEM_LIB_DIR}/
-for library in libhdfs.so.0.0.0 libhadoop.so.1.0.0; do
+for library in libhdfs.so.0.0.0; do
   cp ${BUILD_DIR}/lib/${library} ${SYSTEM_LIB_DIR}/
   ldconfig -vlN ${SYSTEM_LIB_DIR}/${library}
 done
 install -d -m 0755 ${SYSTEM_INCLUDE_DIR}
 cp ${BUILD_DIR}/../hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfs.h ${SYSTEM_INCLUDE_DIR}/
 
+for library in libhadoop.so.1.0.0; do
+  cp ${BUILD_DIR}/lib/${library} ${HADOOP_NATIVE_LIB_DIR}/
+  ldconfig -vlN ${HADOOP_NATIVE_LIB_DIR}/${library}
+done
+
 #libexec
 install -d -m 0755 ${SYSTEM_LIBEXEC_DIR}
 rm -fv ${BUILD_DIR}/libexec/jsvc



Mime
View raw message