Merge branch 'openEuler-22.03-LTS-SP3' of https://gitee.com/wenwj0/hadoop into openEuler-22.03-LTS-SP3

This commit is contained in:
xiexing01 2023-12-15 09:04:02 +00:00
commit 6e6ec3807f

View File

@ -10,8 +10,8 @@
%global __provides_exclude_from ^%{_libdir}/%{name}/.*$ %global __provides_exclude_from ^%{_libdir}/%{name}/.*$
%define _binaries_in_noarch_packages_terminate_build 0 %define _binaries_in_noarch_packages_terminate_build 0
Name: hadoop Name: hadoop
Version: 3.3.4 Version: 3.3.6
Release: 4 Release: 2
Summary: A software platform for processing vast amounts of data Summary: A software platform for processing vast amounts of data
# The BSD license file is missing # The BSD license file is missing
# https://issues.apache.org/jira/browse/HADOOP-9849 # https://issues.apache.org/jira/browse/HADOOP-9849
@ -76,6 +76,7 @@ Obsoletes: %{name}-javadoc < 2.4.1-22%{?dist}
Requires: apache-zookeeper Requires: apache-zookeeper
Requires: leveldb Requires: leveldb
Requires: protobuf2-java Requires: protobuf2-java
Conflicts: hadoop-3.1-client
%description common %description common
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -89,6 +90,7 @@ Hadoop modules.
%package common-native %package common-native
Summary: The native Apache Hadoop library file Summary: The native Apache Hadoop library file
Requires: %{name}-common = %{version}-%{release} Requires: %{name}-common = %{version}-%{release}
Conflicts: hadoop-3.1-common
%description common-native %description common-native
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -101,6 +103,7 @@ This package contains the native-hadoop library
%package devel %package devel
Summary: Headers for Apache Hadoop Summary: Headers for Apache Hadoop
Requires: libhdfs%{?_isa} = %{version}-%{release} Requires: libhdfs%{?_isa} = %{version}-%{release}
Conflicts: hadoop-3.1-common-native
%description devel %description devel
Header files for Apache Hadoop's hdfs library and other utilities Header files for Apache Hadoop's hdfs library and other utilities
@ -113,6 +116,7 @@ Requires: %{name}-common = %{version}-%{release}
Requires(post): systemd Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
Conflicts: hadoop-3.1-hdfs
%description hdfs %description hdfs
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -136,6 +140,7 @@ Requires: tcnative
Requires(post): systemd Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
Conflicts: hadoop-3.1-httpfs
%description httpfs %description httpfs
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -150,6 +155,7 @@ the complete FileSystem/FileContext interface in HDFS.
Summary: The Apache Hadoop Filesystem Library Summary: The Apache Hadoop Filesystem Library
Requires: %{name}-hdfs = %{version}-%{release} Requires: %{name}-hdfs = %{version}-%{release}
Requires: lzo Requires: lzo
Conflicts: hadoop-3.1-libhdfs
%description -n libhdfs %description -n libhdfs
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -167,6 +173,7 @@ Requires: %{name}-mapreduce-examples = %{version}-%{release}
Requires(post): systemd Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
Conflicts: hadoop-3.1-mapreduce
%description mapreduce %description mapreduce
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -180,6 +187,7 @@ This package provides Apache Hadoop MapReduce (MRv2).
Summary: Apache Hadoop MapReduce (MRv2) examples Summary: Apache Hadoop MapReduce (MRv2) examples
BuildArch: noarch BuildArch: noarch
Requires: hsqldb Requires: hsqldb
Conflicts: hadoop-3.1-mapreduce-examples
%description mapreduce-examples %description mapreduce-examples
This package contains mapreduce examples. This package contains mapreduce examples.
@ -188,6 +196,7 @@ This package contains mapreduce examples.
Summary: Apache Hadoop maven plugin Summary: Apache Hadoop maven plugin
BuildArch: noarch BuildArch: noarch
Requires: maven Requires: maven
Conflicts: hadoop-3.1-maven-plugin
%description maven-plugin %description maven-plugin
The Apache Hadoop maven plugin The Apache Hadoop maven plugin
@ -199,6 +208,7 @@ Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-hdfs = %{version}-%{release} Requires: %{name}-hdfs = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release} Requires: %{name}-mapreduce = %{version}-%{release}
Requires: %{name}-yarn = %{version}-%{release} Requires: %{name}-yarn = %{version}-%{release}
Conflicts: hadoop-3.1-tests
%description tests %description tests
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -220,6 +230,7 @@ Requires: leveldbjni
Requires(post): systemd Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
Conflicts: hadoop-3.1-yarn nodejs-yarn
%description yarn %description yarn
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -232,6 +243,7 @@ This package contains Apache Hadoop YARN.
%package yarn-security %package yarn-security
Summary: The ability to run Apache Hadoop YARN in secure mode Summary: The ability to run Apache Hadoop YARN in secure mode
Requires: %{name}-yarn = %{version}-%{release} Requires: %{name}-yarn = %{version}-%{release}
Conflicts: hadoop-3.1-yarn-security
%description yarn-security %description yarn-security
Apache Hadoop is a framework that allows for the distributed processing of Apache Hadoop is a framework that allows for the distributed processing of
@ -263,6 +275,7 @@ tar -xzvf ${HOME}/repository/com/github/eirslett/yarn/1.22.5/yarn-1.22.5.tar.gz
npm config set registry https://repo.huaweicloud.com/repository/npm/ npm config set registry https://repo.huaweicloud.com/repository/npm/
npm cache clean -f npm cache clean -f
${HOME}/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5/bin/yarn config set registry https://repo.huaweicloud.com/repository/npm/ -g ${HOME}/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5/bin/yarn config set registry https://repo.huaweicloud.com/repository/npm/ -g
${HOME}/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 %pom_add_dep org.iq80.leveldb:leveldb-api:0.7 hadoop-hdfs-project/hadoop-hdfs
%pom_add_dep org.iq80.leveldb:leveldb-api:0.7 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy %pom_add_dep org.iq80.leveldb:leveldb-api:0.7 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy
@ -1132,6 +1145,12 @@ fi
%config(noreplace) %{_sysconfdir}/%{name}/container-executor.cfg %config(noreplace) %{_sysconfdir}/%{name}/container-executor.cfg
%changelog %changelog
* Fri Dec 15 2023 xiexing <xiexing4@hisilicon.com> - 3.3.6-2
- add conflicts to hadoop spec
* Mon Nov 27 2023 wenweijian wenweijian2@huawei.com - 3.3.6-1
- fix cve CVE-2023-26031
* Wed Aug 16 2023 Jia Chao <jiac13@chinaunicom.cn> - 3.3.4-4 * Wed Aug 16 2023 Jia Chao <jiac13@chinaunicom.cn> - 3.3.4-4
- fix: use $HOME rather than /home/abuild, suit for all buildtools. - fix: use $HOME rather than /home/abuild, suit for all buildtools.
- fix: yarn have ELF bin, not noarch at all. - fix: yarn have ELF bin, not noarch at all.