This is an automated email from the ASF dual-hosted git repository.
guyuqi pushed a commit to branch openEuler-support
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/openEuler-support by this push:
new 4974e4dc add support for hadoop (#1128)
4974e4dc is described below
commit 4974e4dc8fa7e718d759f7b467f65e7dcc4e02af
Author: MacChen01 <[email protected]>
AuthorDate: Mon Jul 10 12:07:34 2023 +0800
add support for hadoop (#1128)
---
bigtop-packages/src/common/hadoop/do-component-build | 6 ++++++
bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/bigtop-packages/src/common/hadoop/do-component-build
b/bigtop-packages/src/common/hadoop/do-component-build
index 60ff0de9..ec9ea33a 100644
--- a/bigtop-packages/src/common/hadoop/do-component-build
+++ b/bigtop-packages/src/common/hadoop/do-component-build
@@ -131,6 +131,12 @@ MAVEN_OPTS+="-DskipTests -DskipITs "
# Include common Maven Deployment logic
. $(dirname ${0})/maven_deploy.sh
+. /etc/os-release
+OS="$ID"
+if [ "${OS}" = "openEuler" ] ; then
+ sed -i 's|node-gyp "^3.8.0"|node-gyp "^6.0.0"|g'
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock
+fi
+
# Build artifacts
mvn $BUNDLE_SNAPPY -Pdist -Pnative -Psrc -Pyarn-ui -Dtar ${MAVEN_OPTS} install
${EXTRA_GOALS} "$@"
mvn site site:stage ${MAVEN_OPTS} $@
diff --git a/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
b/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
index 8d372300..dd9a69b2 100644
--- a/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
+++ b/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
@@ -197,7 +197,11 @@ Requires: sh-utils, insserv
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
+%if 0%{?openEuler}
+BuildRequires: pkgconfig, fuse-libs, openEuler-rpm-config, lzo-devel,
openssl-devel
+%else
BuildRequires: pkgconfig, fuse-libs, redhat-rpm-config, lzo-devel,
openssl-devel
+%endif
# Required for init scripts
Requires: coreutils, /lib/lsb/init-functions
%endif