Repository: bigtop Updated Branches: refs/heads/branch-1.3 e9f38ab11 -> 846432138
BIGTOP-2101: ignite-hadoop contains an arch-dependent shared lib 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 <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/84643213 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/84643213 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/84643213 Branch: refs/heads/branch-1.3 Commit: 8464321384edc04211a8719f4c6ddb95353bb98a Parents: e9f38ab Author: Jun He <[email protected]> Authored: Mon Nov 13 18:11:31 2017 +0800 Committer: Jun He <[email protected]> Committed: Thu Sep 6 09:53:54 2018 +0000 ---------------------------------------------------------------------- .../src/common/ignite-hadoop/do-component-build | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/84643213/bigtop-packages/src/common/ignite-hadoop/do-component-build ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/ignite-hadoop/do-component-build b/bigtop-packages/src/common/ignite-hadoop/do-component-build index 9c37a59..5525242 100644 --- a/bigtop-packages/src/common/ignite-hadoop/do-component-build +++ b/bigtop-packages/src/common/ignite-hadoop/do-component-build @@ -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
