This is an automated email from the ASF dual-hosted git repository.

guyuqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git

commit ea969fbeda1b489444a6c4dbe2f203ab3def5d90
Author: MacChen01 <[email protected]>
AuthorDate: Mon Jul 10 12:07:34 2023 +0800

    add support for hadoop (#1128)
    
    (cherry picked from commit 4974e4dc8fa7e718d759f7b467f65e7dcc4e02af)
---
 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 3c6a7dce2..392dfca29 100644
--- a/bigtop-packages/src/common/hadoop/do-component-build
+++ b/bigtop-packages/src/common/hadoop/do-component-build
@@ -73,6 +73,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 $BUNDLE_ISAL -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 8d372300a..dd9a69b25 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

Reply via email to