BIGTOP-2101: ignite-hadoop contains an arch-dependent shared lib
authorJun He <jun.he@linaro.org>
Mon, 13 Nov 2017 10:11:31 +0000 (18:11 +0800)
committerJun He <junhe@apache.org>
Thu, 6 Sep 2018 09:45:42 +0000 (09:45 +0000)
ignite-shmem contains x86 binary only. A build step is added to create
arch specific library for non-x86 platforms.

This closes #358

Change-Id: I9f4f03ec61250da21c13a915dc7efd5303e95d5b
Signed-off-by: Jun He <junhe@apache.org>
bigtop-packages/src/common/ignite-hadoop/do-component-build

index 9c37a59..5525242 100644 (file)
@@ -21,4 +21,19 @@ set -ex
 export MAVEN_OPTS="-Xmx512M"
 
 sed -i '/asm-all/{n;s/4.2/5.0.2/}' modules/hadoop/pom.xml
+
+cd ipc/shmem
+# patch and build it
+sed -i 's/\&ipcData->closed\,/(char *)\&ipcData->closed\,/' igniteshmem/org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp
+./configure && make
+# create layout
+mkdir -p META-INF/native/linux64
+cp ./igniteshmem/.libs/libigniteshmem.so META-INF/native/linux64/libigniteshmem.so
+# pack and install
+jar cf ignite-shmem-1.0.0.jar META-INF
+mvn install:install-file -Dfile=ignite-shmem-1.0.0.jar -DgroupId=org.gridgain -DartifactId=ignite-shmem -Dversion=1.0.0 -Dpackaging=jar -DcreateChecksum=true
+# clean up
+rm -rf META-INF
+cd -
+
 mvn clean install -DskipTests -Dhadoop.version=$HADOOP_VERSION -Dspark.version=$SPARK_VERSION -Dignite.edition=hadoop