aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramir sanjar <sanjar@sovmp155.lop.siteox.com>2016-01-29 16:11:42 +0000
committerKonstantin Boudnik <cos@apache.org>2016-01-29 13:18:08 -0800
commit2b0bd26b222c2774319d267883a520cc590dbe83 (patch)
tree435064a4da61591258229acd092dea54748c91f1
parentdbf098fe56246cf44ca8d9c2940f2c5c59df40de (diff)
downloadbigtop-odpi-2b0bd26b222c2774319d267883a520cc590dbe83.tar.gz
BIGTOP-2288: workaround to fix invalid leveldbjni in maven repository
Signed-off-by: Konstantin Boudnik <cos@apache.org>
-rw-r--r--bigtop-packages/src/common/hadoop/do-component-build26
1 files changed, 26 insertions, 0 deletions
diff --git a/bigtop-packages/src/common/hadoop/do-component-build b/bigtop-packages/src/common/hadoop/do-component-build
index adc2450b..45db9128 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