This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new b9225e797 BIGTOP-3896. Failed to deploy Alluxio on Arm64/ppc64le
Fedora-38 (#1229)
b9225e797 is described below
commit b9225e7973bb65ad2f24dd0bba45b4450742e88a
Author: MacChen01 <[email protected]>
AuthorDate: Thu Jan 4 18:23:24 2024 +0800
BIGTOP-3896. Failed to deploy Alluxio on Arm64/ppc64le Fedora-38 (#1229)
---
bigtop-packages/src/common/alluxio/do-component-build | 6 ++++--
bigtop-packages/src/common/alluxio/install_alluxio.sh | 9 +++++++--
bigtop_toolchain/manifests/packages.pp | 2 ++
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/bigtop-packages/src/common/alluxio/do-component-build
b/bigtop-packages/src/common/alluxio/do-component-build
index 1ff97812e..e4275fe01 100644
--- a/bigtop-packages/src/common/alluxio/do-component-build
+++ b/bigtop-packages/src/common/alluxio/do-component-build
@@ -44,8 +44,10 @@ if [ $HOSTTYPE = "powerpc64le" ] ; then
mvn clean install -DskipTests -Dhadoop.version=${HADOOP_VERSION}
-Dgrpc.version=1.28.0
-Dmaven.buildNumber.revisionOnScmFailure=v${ALLUXIO_VERSION} -Phadoop-3 -Pyarn
"$@"
else
- #need to manually compile the libjnifuse*.so in openEuler
- if [ "${OS}" = "openEuler" ] ; then
+ #need to manually compile the libjnifuse*.so in openEuler and fedora.
+ #The libjnifuse*.so files which alluxio need is not compiled by default, and
uses the x86 ARCH version
+ #so we need to compile libjnifuse*.so and copy it to the corresponding
directory of alluxio
+ if [ "${OS}" = "openEuler" ] || [ "${OS}" = "fedora" ]; then
sed -i
"s|<activeByDefault>false</activeByDefault>|<activeByDefault>true</activeByDefault>|g"
integration/jnifuse/native/pom.xml
fi
diff --git a/bigtop-packages/src/common/alluxio/install_alluxio.sh
b/bigtop-packages/src/common/alluxio/install_alluxio.sh
index 63da40e4e..380ce2445 100644
--- a/bigtop-packages/src/common/alluxio/install_alluxio.sh
+++ b/bigtop-packages/src/common/alluxio/install_alluxio.sh
@@ -89,6 +89,9 @@ for var in PREFIX BUILD_DIR ; do
fi
done
+. /etc/os-release
+OS="$ID"
+
LIB_DIR=${LIB_DIR:-/usr/lib/alluxio}
LIBEXEC_DIR=${INSTALLED_LIB_DIR:-/usr/libexec}
BIN_DIR=${BIN_DIR:-/usr/bin}
@@ -130,8 +133,10 @@ cp -a client/* $PREFIX/$LIB_DIR/client
cp -a integration/* $PREFIX/$LIB_DIR/integration
cp
integration/fuse/target/alluxio-integration-fuse-*-jar-with-dependencies.jar
$PREFIX/$LIB_DIR/integration/fuse
-# replace the original libjnifuse*.so file with the manually compiled in
openEuler
-if [ ${OS} = "openEuler" ]; then
+# replace the original libjnifuse*.so file with the manually compiled in
openEuler and fedora
+# The libjnifuse*.so files which alluxio need is not compiled by default, and
uses the x86 ARCH version
+# so we need to compile libjnifuse*.so and copy it to the corresponding
directory of alluxio
+if [ ${OS} = "openEuler" ] || [ "${OS}" = "fedora" ]; then
cp integration/jnifuse/native/src/main/resources/libjnifuse*.so
$PREFIX/$LIB_DIR/integration/jnifuse/native/target/classes/
fi
diff --git a/bigtop_toolchain/manifests/packages.pp
b/bigtop_toolchain/manifests/packages.pp
index d1dbf6727..38d51962c 100644
--- a/bigtop_toolchain/manifests/packages.pp
+++ b/bigtop_toolchain/manifests/packages.pp
@@ -29,6 +29,8 @@ class bigtop_toolchain::packages {
"gcc",
"gcc-c++",
"fuse",
+ "fuse3",
+ "fuse3-devel",
"createrepo",
"lzo-devel",
"fuse-devel",