From 96d5f1d1ac15cacb6fd71d475f23ab30c17e9a5d Mon Sep 17 00:00:00 2001 From: wenweijian Date: Fri, 13 Dec 2024 12:30:57 +0800 Subject: [PATCH] add hadoop build config --- hadoop.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hadoop.spec b/hadoop.spec index 8b5c739..4b932ae 100644 --- a/hadoop.spec +++ b/hadoop.spec @@ -9,9 +9,11 @@ %global __requires_exclude_from ^%{_libdir}/%{name}/libhadoop.so$ %global __provides_exclude_from ^%{_libdir}/%{name}/.*$ %define _binaries_in_noarch_packages_terminate_build 0 +%define huawei_repo https://repo.huaweicloud.com/repository + Name: hadoop Version: 3.3.6 -Release: 6 +Release: 7 Summary: A software platform for processing vast amounts of data # The BSD license file is missing # https://issues.apache.org/jira/browse/HADOOP-9849 @@ -324,7 +326,9 @@ mkdir -p ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/ cp %{SOURCE14} ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/ mv ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5.tar.gz ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-1.22.5.tar.gz tar -xzvf ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-1.22.5.tar.gz -C ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/ +npm config set registry %{huawei_repo}/npm/ npm cache clean -f +${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5/bin/yarn config set registry %{huawei_repo}/npm/ -g ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5/bin/yarn config set ignore-engines true %pom_add_dep org.iq80.leveldb:leveldb-api:0.7 hadoop-hdfs-project/hadoop-hdfs @@ -1203,6 +1207,9 @@ fi %config(noreplace) %{_sysconfdir}/%{name}/container-executor.cfg %changelog +* Fri Dec 13 2024 wenweijian - 3.3.6-7 +- Add huawei repository + * Mon Nov 11 2024 xiaochn - 3.3.6-6 - Remove npm repo in spec file and use unified configuration of the build environment -- Gitee