bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [2/3] bigtop git commit: BIGTOP-2288: workaround to fix invalid leveldbjni in maven repository
Date Sat, 30 Jan 2016 01:16:02 GMT
BIGTOP-2288: workaround to fix invalid leveldbjni in maven repository

Signed-off-by: Konstantin Boudnik <cos@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/2b0bd26b
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/2b0bd26b
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/2b0bd26b

Branch: refs/heads/branch-1.1
Commit: 2b0bd26b222c2774319d267883a520cc590dbe83
Parents: dbf098f
Author: amir sanjar <sanjar@sovmp155.lop.siteox.com>
Authored: Fri Jan 29 16:11:42 2016 +0000
Committer: Konstantin Boudnik <cos@apache.org>
Committed: Fri Jan 29 13:18:08 2016 -0800

----------------------------------------------------------------------
 .../src/common/hadoop/do-component-build        | 26 ++++++++++++++++++++
 1 file changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/2b0bd26b/bigtop-packages/src/common/hadoop/do-component-build
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/hadoop/do-component-build b/bigtop-packages/src/common/hadoop/do-component-build
index adc2450..45db912 100644
--- a/bigtop-packages/src/common/hadoop/do-component-build
+++ b/bigtop-packages/src/common/hadoop/do-component-build
@@ -15,6 +15,32 @@
 # limitations under the License.
 
 set -ex
+######################################################################
+# BIGTOP-2288 Please remove this patch when maven repository is updated
+# with version of leveldbjni-all library that is not x86 specific
+if [ $HOSTTYPE = "powerpc64le" ] ; then
+        #download the POWER version of leveldb
+        git clone git://github.com/ibmsoe/leveldb.git
+        git clone https://github.com/ibmsoe/leveldbjni.git
+        export SNAPPY_HOME=/usr/lib
+        export LEVELDB_HOME=`cd leveldb; pwd`
+        export LEVELDBJNI_HOME=`cd leveldbjni; pwd`
+        export LIBRARY_PATH=${SNAPPY_HOME}
+        cd ${LEVELDB_HOME}
+        export C_INCLUDE_PATH=${LIBRARY_PATH}
+        export CPLUS_INCLUDE_PATH=${LIBRARY_PATH}
+        git apply ../leveldbjni/leveldb.patch
+        make libleveldb.a
+        #Now use maven to build and update the local maven repository with ppc version of
+        #leveldbjni.
+        cd ${LEVELDBJNI_HOME}
+        mvn clean install -DskipTests -P download -Plinux64,all
+        cd ..
+        #cleanup
+        rm -rf ${LEVELDBJNI_HOME}
+        rm -rf ${LEVELDB_HOME}
+fi
+## BIGTOP-2288
 
 . `dirname $0`/bigtop.bom
 


Mime
View raw message