hadoop/hadoop.spec

1281 lines
46 KiB
RPMSpec
Raw Normal View History

2013-08-20 20:06:04 +00:00
%global _hardened_build 1
2013-10-23 16:20:48 +00:00
# libhdfs is only supported on intel architectures atm.
%ifarch %ix86 x86_64
%global package_libhdfs 1
%else
%global package_libhdfs 0
%endif
2014-07-15 14:14:23 +00:00
%global commit 9e2ef43a240fb0f603d8c384e501daec11524510
2013-08-20 20:06:04 +00:00
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2013-10-23 16:20:48 +00:00
%global hadoop_version %{version}
2014-05-27 17:12:24 +00:00
%global hdfs_services hadoop-zkfc.service hadoop-datanode.service hadoop-secondarynamenode.service hadoop-namenode.service hadoop-journalnode.service
2013-08-20 20:06:04 +00:00
%global mapreduce_services hadoop-historyserver.service
2014-05-27 17:12:24 +00:00
%global yarn_services hadoop-proxyserver.service hadoop-resourcemanager.service hadoop-nodemanager.service hadoop-timelineserver.service
2013-08-20 20:06:04 +00:00
2013-10-10 21:42:15 +00:00
# Filter out undesired provides and requires
2013-12-03 18:00:52 +00:00
%global __requires_exclude_from ^%{_libdir}/%{name}/libhadoop.so$
2013-10-10 21:42:15 +00:00
%global __provides_exclude_from ^%{_libdir}/%{name}/.*$
2014-05-27 17:12:24 +00:00
%bcond_with javadoc
2013-08-20 20:06:04 +00:00
Name: hadoop
2014-07-15 14:14:23 +00:00
Version: 2.4.1
2015-04-21 21:50:41 +00:00
Release: 8%{?dist}
2013-08-20 20:06:04 +00:00
Summary: A software platform for processing vast amounts of data
# The BSD license file is missing
# https://issues.apache.org/jira/browse/HADOOP-9849
License: ASL 2.0 and BSD
URL: http://hadoop.apache.org
Source0: https://github.com/apache/hadoop-common/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
2014-05-27 17:12:24 +00:00
Source1: %{name}-layout.sh
Source2: %{name}-hdfs.service.template
Source3: %{name}-mapreduce.service.template
Source4: %{name}-yarn.service.template
Source6: %{name}.logrotate
Source8: %{name}-core-site.xml
Source9: %{name}-hdfs-site.xml
Source10: %{name}-mapred-site.xml
Source11: %{name}-yarn-site.xml
Source12: %{name}-httpfs.sysconfig
2013-08-20 20:06:04 +00:00
Source13: hdfs-create-dirs
2014-05-27 17:12:24 +00:00
Source14: %{name}-tomcat-users.xml
2013-08-20 20:06:04 +00:00
# This patch includes the following upstream tickets:
# https://issues.apache.org/jira/browse/HADOOP-9613
2013-12-03 18:00:52 +00:00
# https://issues.apache.org/jira/browse/HDFS-5411
# https://issues.apache.org/jira/browse/HADOOP-10068
# https://issues.apache.org/jira/browse/HADOOP-10075
# https://issues.apache.org/jira/browse/HADOOP-10076
2014-05-27 17:12:24 +00:00
Patch0: %{name}-fedora-integration.patch
2013-08-20 20:06:04 +00:00
# Fedora packaging guidelines for JNI library loading
2014-05-27 17:12:24 +00:00
Patch2: %{name}-jni-library-loading.patch
2013-08-20 20:06:04 +00:00
# Clean up warnings with maven 3.0.5
2014-05-27 17:12:24 +00:00
Patch3: %{name}-maven.patch
2014-01-24 21:02:12 +00:00
# Don't download tomcat
2014-05-27 17:12:24 +00:00
Patch4: %{name}-no-download-tomcat.patch
2013-10-23 16:20:48 +00:00
# Use dlopen to find libjvm.so
2014-05-27 17:12:24 +00:00
Patch5: %{name}-dlopen-libjvm.patch
2014-06-26 16:56:06 +00:00
# Update to Guava 17.0
Patch7: %{name}-guava.patch
2014-05-27 17:12:24 +00:00
# Update to Netty 3.6.6-Final
2015-02-15 22:52:30 +00:00
Patch8: %{name}-netty-3-Final.patch
2014-05-27 17:12:24 +00:00
# Remove problematic issues with tools.jar
Patch9: %{name}-tools.jar.patch
2014-06-26 16:56:06 +00:00
# Workaround for bz1012059
Patch10: %{name}-build.patch
# Fix Java detection on ppc64le
Patch11: %{name}-2.4.1-cmake-java-ppc64le.patch
2015-04-21 21:50:41 +00:00
# Build with hard-float on ARMv7
Patch12: %{name}-armhfp.patch
2013-08-20 20:06:04 +00:00
# This is not a real BR, but is here because of rawhide shift to eclipse
# aether packages which caused a dependency of a dependency to not get
# pulled in.
BuildRequires: aether
BuildRequires: ant
BuildRequires: antlr-tool
BuildRequires: aopalliance
BuildRequires: apache-commons-beanutils
BuildRequires: apache-commons-cli
2014-10-28 12:17:38 +00:00
BuildRequires: apache-commons-codec
2013-08-20 20:06:04 +00:00
BuildRequires: apache-commons-collections
BuildRequires: apache-commons-configuration
BuildRequires: apache-commons-daemon
BuildRequires: apache-commons-el
BuildRequires: apache-commons-io
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-logging
BuildRequires: apache-commons-math
BuildRequires: apache-commons-net
BuildRequires: apache-rat-plugin
BuildRequires: atinject
BuildRequires: avalon-framework
BuildRequires: avalon-logkit
BuildRequires: avro
BuildRequires: bookkeeper-java
BuildRequires: cglib
BuildRequires: checkstyle
BuildRequires: chrpath
BuildRequires: cmake
BuildRequires: ecj >= 1:4.2.1-6
BuildRequires: fuse-devel
BuildRequires: fusesource-pom
BuildRequires: geronimo-jms
2013-10-07 19:27:15 +00:00
BuildRequires: gcc-c++
2013-08-20 20:06:04 +00:00
BuildRequires: glassfish-jaxb
BuildRequires: glassfish-jsp
BuildRequires: glassfish-jsp-api
BuildRequires: google-guice
BuildRequires: grizzly
BuildRequires: guava
BuildRequires: guice-servlet
BuildRequires: hamcrest
2014-05-27 17:12:24 +00:00
BuildRequires: hawtjni
2013-08-20 20:06:04 +00:00
BuildRequires: hsqldb
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: istack-commons
BuildRequires: jackson
2014-10-28 12:17:38 +00:00
BuildRequires: jakarta-commons-httpclient
2013-08-20 20:06:04 +00:00
BuildRequires: java-base64
BuildRequires: java-devel
BuildRequires: java-xmlbuilder
BuildRequires: javamail
BuildRequires: javapackages-tools
BuildRequires: jdiff
2015-06-12 09:39:19 +00:00
BuildRequires: jersey1
BuildRequires: jersey1-contribs
2013-08-20 20:06:04 +00:00
BuildRequires: jets3t
BuildRequires: jettison
2014-05-27 17:12:24 +00:00
BuildRequires: jetty8
2013-08-20 20:06:04 +00:00
BuildRequires: jsch
BuildRequires: json_simple
2014-05-27 17:12:24 +00:00
BuildRequires: jspc
2013-08-20 20:06:04 +00:00
BuildRequires: jsr-305
BuildRequires: jsr-311
BuildRequires: junit
BuildRequires: jzlib
2014-05-27 17:12:24 +00:00
BuildRequires: leveldbjni
2015-03-11 14:09:21 +00:00
BuildRequires: groovy18
2014-05-27 17:12:24 +00:00
%if 0%{?fedora} < 21
2013-08-20 20:06:04 +00:00
BuildRequires: log4j
2014-05-27 17:12:24 +00:00
%else
BuildRequires: log4j12
%endif
2013-10-07 19:27:15 +00:00
BuildRequires: make
2013-08-20 20:06:04 +00:00
BuildRequires: maven
BuildRequires: maven-antrun-plugin
BuildRequires: maven-assembly-plugin
BuildRequires: maven-clean-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-invoker-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-local
BuildRequires: maven-plugin-build-helper
BuildRequires: maven-plugin-exec
BuildRequires: maven-plugin-plugin
BuildRequires: maven-release-plugin
BuildRequires: maven-remote-resources-plugin
BuildRequires: maven-shade-plugin
BuildRequires: maven-surefire-plugin
BuildRequires: maven-war-plugin
2014-05-27 17:12:24 +00:00
BuildRequires: metrics
2013-08-20 20:06:04 +00:00
BuildRequires: mockito
BuildRequires: native-maven-plugin
2014-05-27 17:12:24 +00:00
%if 0%{?fedora} < 21
2013-08-20 20:06:04 +00:00
BuildRequires: netty
2014-01-24 21:02:12 +00:00
%else
BuildRequires: netty3
%endif
2013-08-20 20:06:04 +00:00
BuildRequires: objectweb-asm
2013-10-23 16:20:48 +00:00
BuildRequires: objenesis >= 1.2-16
2013-08-20 20:06:04 +00:00
BuildRequires: openssl-devel
BuildRequires: paranamer
BuildRequires: protobuf-compiler
BuildRequires: protobuf-java
BuildRequires: relaxngDatatype
BuildRequires: servlet3
BuildRequires: slf4j
BuildRequires: snappy-devel
BuildRequires: snappy-java
BuildRequires: systemd
2014-01-24 21:02:12 +00:00
BuildRequires: tomcat
2015-04-22 12:00:43 +00:00
BuildRequires: tomcat-el-3.0-api
2014-05-27 17:12:24 +00:00
%if 0%{?fedora} > 20
BuildRequires: tomcat-log4j
%endif
2015-04-22 12:00:43 +00:00
BuildRequires: tomcat-servlet-3.1-api
2013-08-20 20:06:04 +00:00
BuildRequires: txw2
2013-10-03 16:57:39 +00:00
BuildRequires: which
2013-08-20 20:06:04 +00:00
BuildRequires: xmlenc
BuildRequires: znerd-oss-parent
2014-05-27 17:12:24 +00:00
%if 0%{?fedora} < 21
2013-08-20 20:06:04 +00:00
BuildRequires: zookeeper-java
2014-02-03 17:44:43 +00:00
%else
BuildRequires: zookeeper-java > 3.4.5-15
%endif
2013-08-20 20:06:04 +00:00
# For tests
BuildRequires: jersey-test-framework
2014-05-27 17:12:24 +00:00
%if 0%{?fedora} > 20
BuildRequires: maven-surefire-provider-junit
%else
2013-08-20 20:06:04 +00:00
BuildRequires: maven-surefire-provider-junit4
2014-05-27 17:12:24 +00:00
%endif
2013-08-20 20:06:04 +00:00
%description
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
2013-09-13 15:24:35 +00:00
%package client
2013-12-03 18:00:52 +00:00
Summary: Libraries for Apache Hadoop clients
2013-09-13 15:24:35 +00:00
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-hdfs = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release}
Requires: %{name}-yarn = %{version}-%{release}
%description client
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-09-13 15:24:35 +00:00
offering local computation and storage.
2013-12-03 18:00:52 +00:00
This package provides libraries for Apache Hadoop clients.
2013-09-13 15:24:35 +00:00
2013-08-20 20:06:04 +00:00
%package common
2013-12-03 18:00:52 +00:00
Summary: Common files needed by Apache Hadoop daemons
2013-08-20 20:06:04 +00:00
BuildArch: noarch
Requires: /usr/sbin/useradd
# These are required to meet the symlinks for the classpath
Requires: antlr-tool
Requires: apache-commons-beanutils
Requires: avalon-framework
Requires: avalon-logkit
Requires: checkstyle
Requires: coreutils
Requires: geronimo-jms
Requires: glassfish-jaxb
Requires: glassfish-jsp
Requires: glassfish-jsp-api
Requires: istack-commons
2014-10-28 12:17:38 +00:00
Requires: jakarta-commons-httpclient
2013-08-20 20:06:04 +00:00
Requires: java-base64
Requires: java-xmlbuilder
Requires: javamail
Requires: jettison
2014-05-27 17:12:24 +00:00
Requires: jetty8
2013-08-20 20:06:04 +00:00
Requires: jsr-311
Requires: mockito
Requires: nc6
Requires: objectweb-asm
Requires: objenesis
Requires: paranamer
Requires: relaxngDatatype
Requires: servlet3
Requires: snappy-java
Requires: txw2
2013-10-03 16:57:39 +00:00
Requires: which
2013-08-20 20:06:04 +00:00
%description common
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
2013-12-03 18:00:52 +00:00
This package contains common files and utilities needed by other Apache
Hadoop modules.
2013-08-20 20:06:04 +00:00
%package common-native
2013-12-03 18:00:52 +00:00
Summary: The native Apache Hadoop library file
2013-08-20 20:06:04 +00:00
Requires: %{name}-common = %{version}-%{release}
%description common-native
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
This package contains the native-hadoop library
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%package devel
2013-12-03 18:00:52 +00:00
Summary: Headers for Apache Hadoop
2013-08-20 20:06:04 +00:00
Requires: libhdfs%{?_isa} = %{version}-%{release}
%description devel
2013-12-03 18:00:52 +00:00
Header files for Apache Hadoop's hdfs library and other utilities
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
%package hdfs
2013-12-03 18:00:52 +00:00
Summary: The Apache Hadoop Distributed File System
2013-08-20 20:06:04 +00:00
BuildArch: noarch
2013-10-07 19:27:15 +00:00
Requires: apache-commons-daemon-jsvc
2013-08-20 20:06:04 +00:00
Requires: %{name}-common = %{version}-%{release}
Requires(pre): %{name}-common = %{version}-%{release}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description hdfs
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
The Hadoop Distributed File System (HDFS) is the primary storage system
2013-12-03 18:00:52 +00:00
used by Apache Hadoop applications.
2013-08-20 20:06:04 +00:00
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%package hdfs-fuse
2013-12-03 18:00:52 +00:00
Summary: Allows mounting of Apache Hadoop HDFS
2013-10-07 19:27:15 +00:00
Requires: fuse
2013-08-20 20:06:04 +00:00
Requires: libhdfs%{?_isa} = %{version}-%{release}
2013-10-07 19:27:15 +00:00
Requires: %{name}-common = %{version}-%{release}
2013-08-20 20:06:04 +00:00
Requires: %{name}-hdfs = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release}
2013-10-07 19:27:15 +00:00
Requires: %{name}-yarn = %{version}-%{release}
2013-08-20 20:06:04 +00:00
%description hdfs-fuse
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
This package provides tools that allow HDFS to be mounted as a standard
file system through fuse.
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
%package httpfs
Summary: Provides web access to HDFS
BuildArch: noarch
Requires: apache-commons-dbcp
Requires: ecj >= 1:4.2.1-6
2014-02-03 17:44:43 +00:00
Requires: json_simple
2013-08-20 20:06:04 +00:00
Requires: tomcat
Requires: tomcat-lib
Requires: tomcat-native
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description httpfs
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
This package provides a server that provides HTTP REST API support for
the complete FileSystem/FileContext interface in HDFS.
# Creation of javadocs takes too many resources and results in failures on
# most architectures so only generate on intel 64-bit
%ifarch x86_64
2014-05-27 17:12:24 +00:00
%if %{with javadoc}
2013-08-20 20:06:04 +00:00
%package javadoc
2013-12-03 18:00:52 +00:00
Summary: Javadoc for Apache Hadoop
2013-08-20 20:06:04 +00:00
BuildArch: noarch
%description javadoc
2013-12-03 18:00:52 +00:00
This package contains the API documentation for %{name}.
2013-08-20 20:06:04 +00:00
%endif
2014-05-27 17:12:24 +00:00
%endif
2013-08-20 20:06:04 +00:00
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%package -n libhdfs
2013-12-03 18:00:52 +00:00
Summary: The Apache Hadoop Filesystem Library
2013-09-13 15:24:35 +00:00
Requires: %{name}-hdfs = %{version}-%{release}
2013-08-20 20:06:04 +00:00
Requires: lzo
%description -n libhdfs
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
2013-12-03 18:00:52 +00:00
This package provides the Apache Hadoop Filesystem Library.
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
%package mapreduce
2013-12-03 18:00:52 +00:00
Summary: Apache Hadoop MapReduce (MRv2)
2013-08-20 20:06:04 +00:00
BuildArch: noarch
Requires(pre): %{name}-common = %{version}-%{release}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description mapreduce
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
2013-12-03 18:00:52 +00:00
This package provides Apache Hadoop MapReduce (MRv2).
2013-08-20 20:06:04 +00:00
%package mapreduce-examples
2013-12-03 18:00:52 +00:00
Summary: Apache Hadoop MapReduce (MRv2) examples
2013-08-20 20:06:04 +00:00
BuildArch: noarch
Requires: hsqldb
%description mapreduce-examples
This package contains mapreduce examples.
%package maven-plugin
2013-12-03 18:00:52 +00:00
Summary: Apache Hadoop maven plugin
2013-08-20 20:06:04 +00:00
BuildArch: noarch
Requires: maven
%description maven-plugin
2013-12-03 18:00:52 +00:00
The Apache Hadoop maven plugin
2013-08-20 20:06:04 +00:00
2013-09-13 15:24:35 +00:00
%package tests
2013-12-03 18:00:52 +00:00
Summary: Apache Hadoop test resources
2013-09-13 15:24:35 +00:00
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-hdfs = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release}
2013-10-07 19:27:15 +00:00
Requires: %{name}-yarn = %{version}-%{release}
2013-09-13 15:24:35 +00:00
%description tests
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-09-13 15:24:35 +00:00
offering local computation and storage.
2013-12-03 18:00:52 +00:00
This package contains test related resources for Apache Hadoop.
2013-09-13 15:24:35 +00:00
2013-08-20 20:06:04 +00:00
%package yarn
2013-12-03 18:00:52 +00:00
Summary: Apache Hadoop YARN
2013-08-20 20:06:04 +00:00
BuildArch: noarch
Requires(pre): %{name}-common = %{version}-%{release}
2014-10-08 18:23:51 +00:00
Requires: %{name}-mapreduce = %{version}-%{release}
2013-08-20 20:06:04 +00:00
Requires: aopalliance
Requires: atinject
Requires: hamcrest
2014-05-27 17:12:24 +00:00
Requires: hawtjni
Requires: leveldbjni
2013-08-20 20:06:04 +00:00
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description yarn
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
2013-08-20 20:06:04 +00:00
offering local computation and storage.
2013-12-03 18:00:52 +00:00
This package contains Apache Hadoop YARN.
2013-08-20 20:06:04 +00:00
%package yarn-security
2013-12-03 18:00:52 +00:00
Summary: The ability to run Apache Hadoop YARN in secure mode
2013-08-20 20:06:04 +00:00
Requires: %{name}-yarn = %{version}-%{release}
%description yarn-security
2013-12-03 18:00:52 +00:00
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.
2013-08-20 20:06:04 +00:00
2013-12-03 18:00:52 +00:00
This package contains files needed to run Apache Hadoop YARN in secure mode.
2013-08-20 20:06:04 +00:00
%prep
%setup -qn %{name}-common-%{commit}
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
%patch5 -p1
%endif
2014-05-27 17:12:24 +00:00
%if 0%{?fedora} >= 21
2014-01-24 21:02:12 +00:00
%patch7 -p1
2014-05-27 17:12:24 +00:00
%patch8 -p1
2014-01-24 21:02:12 +00:00
%endif
2014-05-27 17:12:24 +00:00
%patch9 -p1
2014-06-26 16:56:06 +00:00
%patch10 -p1
%patch11 -p1
2015-04-21 21:50:41 +00:00
%patch12 -p1
2013-08-20 20:06:04 +00:00
2014-05-27 17:12:24 +00:00
%if 0%{?fedora} < 21
2013-08-20 20:06:04 +00:00
# The hadoop test suite needs classes from the zookeeper test suite.
# We need to modify the deps to use the pom for the zookeeper-test jar
2014-05-27 17:12:24 +00:00
fix_zookeeper_test()
{
%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:artifactId='zookeeper' and pom:scope='test']/pom:type" $1
%pom_xpath_inject "pom:project/pom:dependencies/pom:dependency[pom:artifactId='zookeeper' and pom:scope='test']" "
2014-01-24 21:02:12 +00:00
<exclusions>
<exclusion>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
</exclusion>
</exclusions>
2014-05-27 17:12:24 +00:00
" $1
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId='zookeeper' and pom:scope='test']/pom:artifactId" zookeeper-test $1
}
2014-01-24 21:02:12 +00:00
2014-05-27 17:12:24 +00:00
fix_zookeeper_test hadoop-common-project/hadoop-common
fix_zookeeper_test hadoop-hdfs-project/hadoop-hdfs
fix_zookeeper_test hadoop-hdfs-project/hadoop-hdfs-nfs
fix_zookeeper_test hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager
2014-01-24 21:02:12 +00:00
2014-05-27 17:12:24 +00:00
sed -i "s/:pom//" hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/pom.xml
fix_zookeeper_test hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client
2014-02-03 17:44:43 +00:00
%endif
2013-08-20 20:06:04 +00:00
2013-10-03 16:57:39 +00:00
# Remove the maven-site-plugin. It's not needed
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-site-plugin hadoop-common-project/hadoop-auth
%pom_remove_plugin :maven-site-plugin hadoop-hdfs-project/hadoop-hdfs-httpfs
# Remove the findbugs-maven-plugin. It's not needed and isn't available
%pom_remove_plugin :findbugs-maven-plugin hadoop-hdfs-project/hadoop-hdfs-httpfs
%pom_remove_plugin :findbugs-maven-plugin hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal
%pom_remove_plugin :findbugs-maven-plugin hadoop-mapreduce-project/hadoop-mapreduce-client
%pom_remove_plugin :findbugs-maven-plugin hadoop-mapreduce-project/hadoop-mapreduce-examples
%pom_remove_plugin :findbugs-maven-plugin hadoop-mapreduce-project
%pom_remove_plugin :findbugs-maven-plugin hadoop-project-dist
%pom_remove_plugin :findbugs-maven-plugin hadoop-project
%pom_remove_plugin :findbugs-maven-plugin hadoop-tools/hadoop-rumen
%pom_remove_plugin :findbugs-maven-plugin hadoop-tools/hadoop-streaming
%pom_remove_plugin :findbugs-maven-plugin hadoop-yarn-project/hadoop-yarn
%pom_remove_plugin :findbugs-maven-plugin hadoop-yarn-project
# Remove the maven-project-info-reports plugin. It's not needed and isn't available
%pom_remove_plugin :maven-project-info-reports-plugin hadoop-common-project/hadoop-auth
%pom_remove_plugin :maven-project-info-reports-plugin hadoop-hdfs-project/hadoop-hdfs-httpfs
%pom_remove_plugin :maven-project-info-reports-plugin hadoop-project
# Remove the maven-checkstyle plugin. It's not needed and isn't available
%pom_remove_plugin :maven-checkstyle-plugin hadoop-project-dist
%pom_remove_plugin :maven-checkstyle-plugin hadoop-project
%pom_remove_plugin :maven-checkstyle-plugin hadoop-tools/hadoop-distcp
2013-08-20 20:06:04 +00:00
2014-05-27 17:12:24 +00:00
# Disable the hadoop-minikdc module due to missing deps
%pom_disable_module hadoop-minikdc hadoop-common-project
%pom_remove_dep :hadoop-minikdc hadoop-common-project/hadoop-auth
%pom_remove_dep :hadoop-minikdc hadoop-project
%pom_remove_dep :hadoop-minikdc hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/TestKerberosAuthenticator.java
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestKerberosAuthenticationHandler.java
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestAltKerberosAuthenticationHandler.java
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestKerberosAuthenticationHandler.java
rm -f hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests/src/test/java/org/apache/hadoop/yarn/server/TestContainerManagerSecurity.java
# Add dependencies for timeline service
%pom_add_dep org.iq80.leveldb:leveldb hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice
%pom_add_dep org.fusesource.hawtjni:hawtjni-runtime hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice
# Fix scope on hadoop-common:test-jar
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId='hadoop-common' and pom:type='test-jar']/pom:scope" test hadoop-tools/hadoop-openstack
2014-07-15 14:14:23 +00:00
%if 0%{?fedora} > 20
# Modify asm version to version 5.0.2 and groupId to org.ow2.asm
2014-06-26 16:56:06 +00:00
%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:artifactId='asm']/pom:version" 5.0.2 hadoop-project
2014-07-15 14:14:23 +00:00
%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:artifactId='asm']/pom:groupId" org.ow2.asm hadoop-project
%endif
2014-05-27 17:12:24 +00:00
2013-08-20 20:06:04 +00:00
# War files we don't want
2013-09-13 15:24:35 +00:00
%mvn_package :%{name}-auth-examples __noinstall
%mvn_package :%{name}-hdfs-httpfs __noinstall
2013-08-20 20:06:04 +00:00
# Parts we don't want to distribute
2013-09-13 15:24:35 +00:00
%mvn_package :%{name}-assemblies __noinstall
2013-08-20 20:06:04 +00:00
2013-10-03 16:57:39 +00:00
# Workaround for bz1012059
%mvn_package :%{name}-project-dist __noinstall
2013-08-20 20:06:04 +00:00
# Create separate file lists for packaging
2013-12-03 18:00:52 +00:00
%mvn_package :::tests: %{name}-tests
2014-01-24 21:02:12 +00:00
%mvn_package :%{name}-*-tests::{}: %{name}-tests
2013-12-03 18:00:52 +00:00
%mvn_package :%{name}-client*::{}: %{name}-client
%mvn_package :%{name}-hdfs*::{}: %{name}-hdfs
%mvn_package :%{name}-mapreduce-examples*::{}: %{name}-mapreduce-examples
%mvn_package :%{name}-mapreduce*::{}: %{name}-mapreduce
%mvn_package :%{name}-archives::{}: %{name}-mapreduce
%mvn_package :%{name}-datajoin::{}: %{name}-mapreduce
%mvn_package :%{name}-distcp::{}: %{name}-mapreduce
%mvn_package :%{name}-extras::{}: %{name}-mapreduce
%mvn_package :%{name}-gridmix::{}: %{name}-mapreduce
2014-05-27 17:12:24 +00:00
%mvn_package :%{name}-openstack::{}: %{name}-mapreduce
2013-12-03 18:00:52 +00:00
%mvn_package :%{name}-rumen::{}: %{name}-mapreduce
2014-05-27 17:12:24 +00:00
%mvn_package :%{name}-sls::{}: %{name}-mapreduce
2013-12-03 18:00:52 +00:00
%mvn_package :%{name}-streaming::{}: %{name}-mapreduce
%mvn_package :%{name}-pipes::{}: %{name}-mapreduce
%mvn_package :%{name}-tools*::{}: %{name}-mapreduce
%mvn_package :%{name}-maven-plugins::{}: %{name}-maven-plugin
%mvn_package :%{name}-minicluster::{}: %{name}-tests
%mvn_package :%{name}-yarn*::{}: %{name}-yarn
2013-10-03 16:57:39 +00:00
# Jar files that need to be overridden due to installation location
2013-12-03 18:00:52 +00:00
%mvn_file :%{name}-common::tests: %{name}/%{name}-common
2013-08-20 20:06:04 +00:00
%build
%ifnarch x86_64
opts="-j"
2014-05-27 17:12:24 +00:00
%else
%if %{without javadoc}
opts="-j"
%endif
2013-08-20 20:06:04 +00:00
%endif
# increase JVM memory limits to avoid OOM during build
%ifarch s390x ppc64le
export MAVEN_OPTS="-Xms2048M -Xmx4096M"
%endif
2013-12-03 18:00:52 +00:00
%mvn_build $opts -- -Drequire.snappy=true -Dcontainer-executor.conf.dir=%{_sysconfdir}/%{name} -Pdist,native -DskipTests -DskipTest -DskipIT
2013-08-20 20:06:04 +00:00
# This takes a long time to run, so comment out for now
#%%check
#mvn-rpmbuild -Pdist,native test -Dmaven.test.failure.ignore=true
%install
2013-09-13 15:24:35 +00:00
# Copy all jar files except those generated by the build
# $1 the src directory
# $2 the dest directory
copy_dep_jars()
{
find $1 ! -name "hadoop-*.jar" -name "*.jar" | xargs install -m 0644 -t $2
rm -f $2/tools-*.jar
}
2014-05-27 17:12:24 +00:00
# Create symlinks for jars from the build
# $1 the location to create the symlink
link_hadoop_jars()
{
for f in `ls hadoop-* | grep -v tests | grep -v examples`
do
n=`echo $f | sed "s/-%{version}//"`
if [ -L $1/$n ]
then
continue
elif [ -e $1/$f ]
then
rm -f $1/$f $1/$n
fi
p=`find %{buildroot}/%{_jnidir} %{buildroot}/%{_javadir}/%{name} -name $n | sed "s#%{buildroot}##"`
%{__ln_s} $p $1/$n
done
}
2013-08-20 20:06:04 +00:00
%mvn_install
install -d -m 0755 %{buildroot}/%{_libdir}/%{name}
install -d -m 0755 %{buildroot}/%{_includedir}/%{name}
2014-01-24 21:02:12 +00:00
install -d -m 0755 %{buildroot}/%{_jnidir}/%{name}
2013-08-20 20:06:04 +00:00
2013-09-13 15:24:35 +00:00
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/client/lib
2013-08-20 20:06:04 +00:00
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/common/lib
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/hdfs/lib
2014-05-27 17:12:24 +00:00
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/hdfs/webapps
2014-01-24 21:02:12 +00:00
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps
2013-08-20 20:06:04 +00:00
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/yarn/lib
2014-01-24 21:02:12 +00:00
install -d -m 0755 %{buildroot}/%{_sysconfdir}/%{name}/tomcat/Catalina/localhost
2013-08-20 20:06:04 +00:00
install -d -m 0755 %{buildroot}/%{_sysconfdir}/logrotate.d
2014-01-24 21:02:12 +00:00
install -d -m 0755 %{buildroot}/%{_sysconfdir}/sysconfig
2013-08-20 20:06:04 +00:00
install -d -m 0755 %{buildroot}/%{_tmpfilesdir}
2014-06-26 16:56:06 +00:00
install -d -m 0755 %{buildroot}/%{_sharedstatedir}/%{name}-hdfs
install -d -m 0755 %{buildroot}/%{_sharedstatedir}/tomcats/httpfs
2013-08-20 20:06:04 +00:00
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-yarn
2014-01-24 21:02:12 +00:00
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-httpfs/temp
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-httpfs/work
2013-08-20 20:06:04 +00:00
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-mapreduce
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-yarn
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-hdfs
2014-01-24 21:02:12 +00:00
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-httpfs
2013-08-20 20:06:04 +00:00
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-mapreduce
install -d -m 0755 %{buildroot}/%{_var}/run/%{name}-yarn
install -d -m 0755 %{buildroot}/%{_var}/run/%{name}-hdfs
install -d -m 0755 %{buildroot}/%{_var}/run/%{name}-mapreduce
2013-09-13 15:24:35 +00:00
basedir='%{name}-dist/target/%{name}-%{hadoop_version}'
2013-08-20 20:06:04 +00:00
for dir in bin libexec sbin
do
cp -arf $basedir/$dir %{buildroot}/%{_prefix}
done
2013-09-13 15:24:35 +00:00
# This binary is obsoleted and causes a conflict with qt-devel
rm -rf %{buildroot}/%{_bindir}/rcc
2013-08-20 20:06:04 +00:00
# We don't care about this
rm -f %{buildroot}/%{_bindir}/test-container-executor
# Duplicate files
rm -f %{buildroot}/%{_sbindir}/hdfs-config.sh
cp -arf $basedir/etc/* %{buildroot}/%{_sysconfdir}
2013-09-13 15:24:35 +00:00
cp -arf $basedir/lib/native/libhadoop.so* %{buildroot}/%{_libdir}/%{name}
2013-08-20 20:06:04 +00:00
chrpath --delete %{buildroot}/%{_libdir}/%{name}/*
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
cp -arf $basedir/include/hdfs.h %{buildroot}/%{_includedir}/%{name}
cp -arf $basedir/lib/native/libhdfs.so* %{buildroot}/%{_libdir}
chrpath --delete %{buildroot}/%{_libdir}/libhdfs*
2013-08-20 20:06:04 +00:00
cp -af hadoop-hdfs-project/hadoop-hdfs/target/native/main/native/fuse-dfs/fuse_dfs %{buildroot}/%{_bindir}
chrpath --delete %{buildroot}/%{_bindir}/fuse_dfs
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
2014-01-24 21:02:12 +00:00
# Not needed since httpfs is deployed with existing systemd setup
2013-08-20 20:06:04 +00:00
rm -f %{buildroot}/%{_sbindir}/httpfs.sh
rm -f %{buildroot}/%{_libexecdir}/httpfs-config.sh
2014-01-24 21:02:12 +00:00
rm -f %{buildroot}/%{_bindir}/httpfs-env.sh
2013-08-20 20:06:04 +00:00
2013-10-23 16:20:48 +00:00
# Remove files with .cmd extension
find %{buildroot} -name *.cmd | xargs rm -f
2013-08-20 20:06:04 +00:00
# Modify hadoop-env.sh to point to correct locations for JAVA_HOME
# and JSVC_HOME.
2013-12-03 18:00:52 +00:00
sed -i "s|\${JAVA_HOME}|/usr/lib/jvm/jre|" %{buildroot}/%{_sysconfdir}/%{name}/%{name}-env.sh
sed -i "s|\${JSVC_HOME}|/usr/bin|" %{buildroot}/%{_sysconfdir}/%{name}/%{name}-env.sh
2013-08-20 20:06:04 +00:00
# Ensure the java provided DocumentBuilderFactory is used
2013-12-03 18:00:52 +00:00
sed -i "s|\(HADOOP_OPTS.*=.*\)\$HADOOP_CLIENT_OPTS|\1 -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \$HADOOP_CLIENT_OPTS|" %{buildroot}/%{_sysconfdir}/%{name}/%{name}-env.sh
2013-08-20 20:06:04 +00:00
echo "export YARN_OPTS=\"\$YARN_OPTS -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl\"" >> %{buildroot}/%{_sysconfdir}/%{name}/yarn-env.sh
2013-10-03 16:57:39 +00:00
# Workaround for bz1012059
install -pm 644 hadoop-project-dist/pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{name}-%{name}-project-dist.pom
2014-06-26 16:56:06 +00:00
%{__ln_s} %{_jnidir}/%{name}/hadoop-common.jar %{buildroot}/%{_datadir}/%{name}/common
%{__ln_s} %{_javadir}/%{name}/hadoop-hdfs.jar %{buildroot}/%{_datadir}/%{name}/hdfs
%{__ln_s} %{_javadir}/%{name}/hadoop-client.jar %{buildroot}/%{_datadir}/%{name}/client
2013-09-13 15:24:35 +00:00
# client jar depenencies
copy_dep_jars %{name}-client/target/%{name}-client-%{hadoop_version}/share/%{name}/client/lib %{buildroot}/%{_datadir}/%{name}/client/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/client/lib
2014-05-27 17:12:24 +00:00
pushd %{name}-client/target/%{name}-client-%{hadoop_version}/share/%{name}/client/lib
link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/client/lib
popd
pushd %{name}-client/target/%{name}-client-%{hadoop_version}/share/%{name}/client
link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/client
popd
2013-08-20 20:06:04 +00:00
# common jar depenencies
2013-09-13 15:24:35 +00:00
copy_dep_jars $basedir/share/%{name}/common/lib %{buildroot}/%{_datadir}/%{name}/common/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/common/lib
2014-05-27 17:12:24 +00:00
pushd $basedir/share/%{name}/common
link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/common
popd
for f in `ls %{buildroot}/%{_datadir}/%{name}/common/*.jar`
2013-10-03 16:57:39 +00:00
do
2014-05-27 17:12:24 +00:00
echo "$f" | sed "s|%{buildroot}||" >> .mfiles
2013-10-03 16:57:39 +00:00
done
2014-06-26 16:56:06 +00:00
pushd $basedir/share/%{name}/common/lib
2014-05-27 17:12:24 +00:00
link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/common/lib
popd
2013-08-20 20:06:04 +00:00
# hdfs jar dependencies
2013-09-13 15:24:35 +00:00
copy_dep_jars $basedir/share/%{name}/hdfs/lib %{buildroot}/%{_datadir}/%{name}/hdfs/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/hdfs/lib
2013-10-10 21:42:15 +00:00
%{__ln_s} %{_javadir}/%{name}/%{name}-hdfs-bkjournal.jar %{buildroot}/%{_datadir}/%{name}/hdfs/lib
2014-05-27 17:12:24 +00:00
pushd $basedir/share/%{name}/hdfs
link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/hdfs
popd
2013-08-20 20:06:04 +00:00
# httpfs
2014-01-24 21:02:12 +00:00
# Create the webapp directory structure
pushd %{buildroot}/%{_sharedstatedir}/tomcats/httpfs
%{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/conf conf
%{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/lib lib
%{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/logs logs
%{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/temp temp
%{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/webapps webapps
%{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/work work
popd
# Copy the tomcat configuration and overlay with specific configuration bits.
# This is needed so the httpfs instance won't collide with a system running
# tomcat
for f in catalina.policy catalina.properties context.xml log4j.properties \
tomcat.conf web.xml;
do
2014-02-03 17:44:43 +00:00
cp -a %{_sysconfdir}/tomcat/$f %{buildroot}/%{_sysconfdir}/%{name}/tomcat
2014-01-24 21:02:12 +00:00
done
2014-02-03 17:44:43 +00:00
install -m 660 %{SOURCE14} %{buildroot}/%{_sysconfdir}/%{name}/tomcat/tomcat-users.xml
install -m 664 %{name}-hdfs-project/%{name}-hdfs-httpfs/src/main/tomcat/*.* %{buildroot}/%{_sysconfdir}/%{name}/tomcat
2013-08-20 20:06:04 +00:00
2014-01-24 21:02:12 +00:00
# Copy the httpfs webapp
cp -arf %{name}-hdfs-project/%{name}-hdfs-httpfs/target/webhdfs %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps
2013-08-20 20:06:04 +00:00
# Tell tomcat to follow symlinks
2014-01-24 21:02:12 +00:00
cat > %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/META-INF/context.xml <<EOF
2013-08-20 20:06:04 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<Context allowLinking="true">
</Context>
EOF
# Remove the jars included in the webapp and create symlinks
2014-01-24 21:02:12 +00:00
rm -f %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/tools*.jar
rm -f %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/tomcat-*.jar
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib
pushd %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib
2014-05-27 17:12:24 +00:00
link_hadoop_jars .
2014-01-24 21:02:12 +00:00
popd
pushd %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat
%{__ln_s} %{_datadir}/tomcat/bin bin
%{__ln_s} %{_sysconfdir}/%{name}/tomcat conf
%{__ln_s} %{_datadir}/tomcat/lib lib
2013-08-20 20:06:04 +00:00
%{__ln_s} %{_var}/cache/%{name}-httpfs/temp temp
%{__ln_s} %{_var}/cache/%{name}-httpfs/work work
2014-01-24 21:02:12 +00:00
%{__ln_s} %{_var}/log/%{name}-httpfs logs
2013-08-20 20:06:04 +00:00
popd
# mapreduce jar dependencies
2013-09-13 15:24:35 +00:00
copy_dep_jars $basedir/share/%{name}/mapreduce/lib %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
2013-10-10 21:42:15 +00:00
%{__ln_s} %{_javadir}/%{name}/%{name}-annotations.jar %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
2014-05-27 17:12:24 +00:00
pushd $basedir/share/%{name}/mapreduce
link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/mapreduce
popd
2013-08-20 20:06:04 +00:00
# yarn jar dependencies
2013-09-13 15:24:35 +00:00
copy_dep_jars $basedir/share/%{name}/yarn/lib %{buildroot}/%{_datadir}/%{name}/yarn/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/yarn/lib
2013-10-10 21:42:15 +00:00
%{__ln_s} %{_javadir}/%{name}/%{name}-annotations.jar %{buildroot}/%{_datadir}/%{name}/yarn/lib
2014-05-27 17:12:24 +00:00
pushd $basedir/share/%{name}/yarn
link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/yarn
popd
2013-08-20 20:06:04 +00:00
# Install hdfs webapp bits
2014-05-27 17:12:24 +00:00
cp -arf $basedir/share/hadoop/hdfs/webapps/* %{buildroot}/%{_datadir}/%{name}/hdfs/webapps
2013-08-20 20:06:04 +00:00
# hadoop layout. Convert to appropriate lib location for 32 and 64 bit archs
lib=$(echo %{?_libdir} | sed -e 's:/usr/\(.*\):\1:')
if [ "$lib" = "%_libdir" ]; then
echo "_libdir is not located in /usr. Lib location is wrong"
exit 1
fi
2013-12-03 18:00:52 +00:00
sed -e "s|HADOOP_COMMON_LIB_NATIVE_DIR\s*=.*|HADOOP_COMMON_LIB_NATIVE_DIR=$lib/%{name}|" %{SOURCE1} > %{buildroot}/%{_libexecdir}/%{name}-layout.sh
2013-08-20 20:06:04 +00:00
# Default config
cp -f %{SOURCE8} %{buildroot}/%{_sysconfdir}/%{name}/core-site.xml
cp -f %{SOURCE9} %{buildroot}/%{_sysconfdir}/%{name}/hdfs-site.xml
cp -f %{SOURCE10} %{buildroot}/%{_sysconfdir}/%{name}/mapred-site.xml
cp -f %{SOURCE11} %{buildroot}/%{_sysconfdir}/%{name}/yarn-site.xml
# systemd configuration
install -d -m 0755 %{buildroot}/%{_unitdir}/
for service in %{hdfs_services} %{mapreduce_services} %{yarn_services}
do
s=`echo $service | cut -d'-' -f 2 | cut -d'.' -f 1`
2014-05-27 17:12:24 +00:00
daemon=$s
2013-08-20 20:06:04 +00:00
if [[ "%{hdfs_services}" == *$service* ]]
then
src=%{SOURCE2}
elif [[ "%{mapreduce_services}" == *$service* ]]
then
src=%{SOURCE3}
elif [[ "%{yarn_services}" == *$service* ]]
then
2014-05-27 17:12:24 +00:00
if [[ "$s" == "timelineserver" ]]
then
daemon='historyserver'
fi
2013-08-20 20:06:04 +00:00
src=%{SOURCE4}
else
echo "Failed to determine type of service for %service"
exit 1
fi
2014-05-27 17:12:24 +00:00
sed -e "s|DAEMON|$daemon|g" $src > %{buildroot}/%{_unitdir}/%{name}-$s.service
2013-08-20 20:06:04 +00:00
done
2014-01-24 21:02:12 +00:00
cp -f %{SOURCE12} %{buildroot}/%{_sysconfdir}/sysconfig/tomcat@httpfs
2013-08-20 20:06:04 +00:00
# Ensure /var/run directories are recreated on boot
2013-12-03 18:00:52 +00:00
echo "d %{_var}/run/%{name}-yarn 0775 yarn hadoop -" > %{buildroot}/%{_tmpfilesdir}/%{name}-yarn.conf
echo "d %{_var}/run/%{name}-hdfs 0775 hdfs hadoop -" > %{buildroot}/%{_tmpfilesdir}/%{name}-hdfs.conf
echo "d %{_var}/run/%{name}-mapreduce 0775 mapred hadoop -" > %{buildroot}/%{_tmpfilesdir}/%{name}-mapreduce.conf
2013-08-20 20:06:04 +00:00
# logrotate config
2014-01-24 21:02:12 +00:00
for type in hdfs httpfs yarn mapreduce
2013-08-20 20:06:04 +00:00
do
sed -e "s|NAME|$type|" %{SOURCE6} > %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-$type
done
sed -i "s|{|%{_var}/log/hadoop-hdfs/*.audit\n{|" %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-hdfs
# hdfs init script
install -m 755 %{SOURCE13} %{buildroot}/%{_sbindir}
2014-05-27 17:12:24 +00:00
%pretrans -p <lua> hdfs
path = "%{_datadir}/%{name}/hdfs/webapps"
st = posix.stat(path)
if st and st.type == "link" then
os.remove(path)
end
2013-08-20 20:06:04 +00:00
%pre common
getent group hadoop >/dev/null || groupadd -r hadoop
%pre hdfs
getent group hdfs >/dev/null || groupadd -r hdfs
2014-06-26 16:56:06 +00:00
getent passwd hdfs >/dev/null || /usr/sbin/useradd --comment "Apache Hadoop HDFS" --shell /sbin/nologin -M -r -g hdfs -G hadoop --home %{_sharedstatedir}/%{name}-hdfs hdfs
2013-08-20 20:06:04 +00:00
%pre mapreduce
getent group mapred >/dev/null || groupadd -r mapred
2013-12-03 18:00:52 +00:00
getent passwd mapred >/dev/null || /usr/sbin/useradd --comment "Apache Hadoop MapReduce" --shell /sbin/nologin -M -r -g mapred -G hadoop --home %{_var}/cache/%{name}-mapreduce mapred
2013-08-20 20:06:04 +00:00
%pre yarn
getent group yarn >/dev/null || groupadd -r yarn
2013-12-03 18:00:52 +00:00
getent passwd yarn >/dev/null || /usr/sbin/useradd --comment "Apache Hadoop Yarn" --shell /sbin/nologin -M -r -g yarn -G hadoop --home %{_var}/cache/%{name}-yarn yarn
2013-08-20 20:06:04 +00:00
%preun hdfs
%systemd_preun %{hdfs_services}
%preun mapreduce
%systemd_preun %{mapreduce_services}
%preun yarn
%systemd_preun %{yarn_services}
2013-12-03 18:00:52 +00:00
%post common-native -p /sbin/ldconfig
2013-08-20 20:06:04 +00:00
%post hdfs
2014-05-27 17:12:24 +00:00
# Change the home directory for the hdfs user
2014-06-26 16:56:06 +00:00
if [[ `getent passwd hdfs | cut -d: -f 6` != "%{_sharedstatedir}/%{name}-hdfs" ]]
2014-05-27 17:12:24 +00:00
then
2014-06-26 16:56:06 +00:00
/usr/sbin/usermod -d %{_sharedstatedir}/%{name}-hdfs hdfs
2014-05-27 17:12:24 +00:00
fi
if [ $1 -gt 1 ]
then
if [ -d %{_var}/cache/%{name}-hdfs ] && [ ! -L %{_var}/cache/%{name}-hdfs ]
then
# Move the existing hdfs data to the new location
2014-06-26 16:56:06 +00:00
mv -f %{_var}/cache/%{name}-hdfs/* %{_sharedstatedir}/%{name}-hdfs/
2014-05-27 17:12:24 +00:00
fi
fi
2014-06-26 16:56:06 +00:00
%systemd_post %{hdfs_services}
2014-05-27 17:12:24 +00:00
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%post -n libhdfs -p /sbin/ldconfig
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
%post mapreduce
%systemd_post %{mapreduce_services}
%post yarn
%systemd_post %{yarn_services}
2013-12-03 18:00:52 +00:00
%postun common-native -p /sbin/ldconfig
2013-08-20 20:06:04 +00:00
%postun hdfs
%systemd_postun_with_restart %{hdfs_services}
2014-06-26 16:56:06 +00:00
if [ $1 -lt 1 ]
then
# Remove the compatibility symlink
rm -f %{_var}/cache/%{name}-hdfs
fi
2014-05-27 17:12:24 +00:00
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%postun -n libhdfs -p /sbin/ldconfig
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
%postun mapreduce
%systemd_postun_with_restart %{mapreduce_services}
%postun yarn
%systemd_postun_with_restart %{yarn_services}
2014-05-27 17:12:24 +00:00
%posttrans hdfs
# Create a symlink to the new location for hdfs data in case the user changed
# the configuration file and the new one isn't in place to point to the
# correct location
2014-06-26 16:56:06 +00:00
if [ ! -e %{_var}/cache/%{name}-hdfs ]
2014-05-27 17:12:24 +00:00
then
2014-06-26 16:56:06 +00:00
%{__ln_s} %{_sharedstatedir}/%{name}-hdfs %{_var}/cache
2014-05-27 17:12:24 +00:00
fi
2013-12-03 18:00:52 +00:00
%files -f .mfiles-%{name}-client client
2013-10-03 16:57:39 +00:00
%{_datadir}/%{name}/client
2013-09-13 15:24:35 +00:00
2013-08-20 20:06:04 +00:00
%files -f .mfiles common
%doc hadoop-dist/target/hadoop-%{hadoop_version}/share/doc/hadoop/common/*
%config(noreplace) %{_sysconfdir}/%{name}/configuration.xsl
%config(noreplace) %{_sysconfdir}/%{name}/core-site.xml
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-metrics.properties
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-metrics2.properties
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-policy.xml
%config(noreplace) %{_sysconfdir}/%{name}/log4j.properties
%config(noreplace) %{_sysconfdir}/%{name}/slaves
%config(noreplace) %{_sysconfdir}/%{name}/ssl-client.xml.example
%config(noreplace) %{_sysconfdir}/%{name}/ssl-server.xml.example
%dir %{_datadir}/%{name}
2013-10-10 21:42:15 +00:00
%dir %{_datadir}/%{name}/common
2013-09-13 15:24:35 +00:00
%{_datadir}/%{name}/common/lib
%{_libexecdir}/%{name}-config.sh
%{_libexecdir}/%{name}-layout.sh
2014-06-26 16:56:06 +00:00
# Workaround for bz1012059
%{_mavenpomdir}/JPP.%{name}-%{name}-project-dist.pom
2013-08-20 20:06:04 +00:00
%{_bindir}/%{name}
%{_sbindir}/%{name}-daemon.sh
%{_sbindir}/%{name}-daemons.sh
%{_sbindir}/start-all.sh
%{_sbindir}/start-balancer.sh
%{_sbindir}/start-dfs.sh
%{_sbindir}/start-secure-dns.sh
%{_sbindir}/stop-all.sh
%{_sbindir}/stop-balancer.sh
%{_sbindir}/stop-dfs.sh
%{_sbindir}/stop-secure-dns.sh
%{_sbindir}/slaves.sh
%files common-native
%{_libdir}/%{name}/libhadoop.*
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%files devel
%{_includedir}/%{name}
2013-10-10 21:42:15 +00:00
%{_libdir}/libhdfs.so
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
2013-12-03 18:00:52 +00:00
%files -f .mfiles-%{name}-hdfs hdfs
2013-08-20 20:06:04 +00:00
%config(noreplace) %{_sysconfdir}/%{name}/hdfs-site.xml
2013-10-03 16:57:39 +00:00
%{_datadir}/%{name}/hdfs
2013-08-20 20:06:04 +00:00
%{_unitdir}/%{name}-datanode.service
%{_unitdir}/%{name}-namenode.service
2014-05-27 17:12:24 +00:00
%{_unitdir}/%{name}-journalnode.service
2013-08-20 20:06:04 +00:00
%{_unitdir}/%{name}-secondarynamenode.service
%{_unitdir}/%{name}-zkfc.service
%{_libexecdir}/hdfs-config.sh
%{_bindir}/hdfs
%{_sbindir}/distribute-exclude.sh
%{_sbindir}/refresh-namenodes.sh
%{_sbindir}/hdfs-create-dirs
%{_tmpfilesdir}/%{name}-hdfs.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-hdfs
%attr(0755,hdfs,hadoop) %dir %{_var}/run/%{name}-hdfs
%attr(0755,hdfs,hadoop) %dir %{_var}/log/%{name}-hdfs
2014-06-26 16:56:06 +00:00
%attr(0755,hdfs,hadoop) %dir %{_sharedstatedir}/%{name}-hdfs
2013-08-20 20:06:04 +00:00
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%files hdfs-fuse
%attr(755,hdfs,hadoop) %{_bindir}/fuse_dfs
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
%files httpfs
2014-01-24 21:02:12 +00:00
%config(noreplace) %{_sysconfdir}/sysconfig/tomcat@httpfs
2013-08-20 20:06:04 +00:00
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-log4j.properties
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-signature.secret
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-site.xml
2014-02-03 17:44:43 +00:00
%attr(-,tomcat,tomcat) %config(noreplace) %{_sysconfdir}/%{name}/tomcat/*.*
2014-01-24 21:02:12 +00:00
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat/Catalina
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat/Catalina/localhost
2013-08-20 20:06:04 +00:00
%{_datadir}/%{name}/httpfs
2014-01-24 21:02:12 +00:00
%{_sharedstatedir}/tomcats/httpfs
2013-08-20 20:06:04 +00:00
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-httpfs
2014-01-24 21:02:12 +00:00
%attr(0775,root,tomcat) %dir %{_var}/log/%{name}-httpfs
%attr(0775,root,tomcat) %dir %{_var}/cache/%{name}-httpfs
%attr(0775,root,tomcat) %dir %{_var}/cache/%{name}-httpfs/temp
%attr(0775,root,tomcat) %dir %{_var}/cache/%{name}-httpfs/work
2013-08-20 20:06:04 +00:00
%ifarch x86_64
2014-05-27 17:12:24 +00:00
%if %{with javadoc}
2013-08-20 20:06:04 +00:00
%files -f .mfiles-javadoc javadoc
%doc hadoop-dist/target/hadoop-%{hadoop_version}/share/doc/hadoop/common/LICENSE.txt hadoop-dist/target/hadoop-%{hadoop_version}/share/doc/hadoop/common/NOTICE.txt
%endif
2014-05-27 17:12:24 +00:00
%endif
2013-08-20 20:06:04 +00:00
2013-10-23 16:20:48 +00:00
%if %{package_libhdfs}
2013-08-20 20:06:04 +00:00
%files -n libhdfs
%doc hadoop-dist/target/hadoop-%{hadoop_version}/share/doc/hadoop/hdfs/LICENSE.txt
2013-10-10 21:42:15 +00:00
%{_libdir}/libhdfs.so.*
2013-10-23 16:20:48 +00:00
%endif
2013-08-20 20:06:04 +00:00
2013-12-03 18:00:52 +00:00
%files -f .mfiles-%{name}-mapreduce mapreduce
2013-08-20 20:06:04 +00:00
%config(noreplace) %{_sysconfdir}/%{name}/mapred-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/mapred-queues.xml.template
%config(noreplace) %{_sysconfdir}/%{name}/mapred-site.xml
%config(noreplace) %{_sysconfdir}/%{name}/mapred-site.xml.template
2013-10-03 16:57:39 +00:00
%{_datadir}/%{name}/mapreduce
2013-08-20 20:06:04 +00:00
%{_libexecdir}/mapred-config.sh
%{_unitdir}/%{name}-historyserver.service
%{_bindir}/mapred
%{_sbindir}/mr-jobhistory-daemon.sh
%{_tmpfilesdir}/%{name}-mapreduce.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-mapreduce
%attr(0755,mapred,hadoop) %dir %{_var}/run/%{name}-mapreduce
%attr(0755,mapred,hadoop) %dir %{_var}/log/%{name}-mapreduce
%attr(0755,mapred,hadoop) %dir %{_var}/cache/%{name}-mapreduce
2013-12-03 18:00:52 +00:00
%files -f .mfiles-%{name}-mapreduce-examples mapreduce-examples
2013-08-20 20:06:04 +00:00
2013-12-03 18:00:52 +00:00
%files -f .mfiles-%{name}-maven-plugin maven-plugin
2013-08-20 20:06:04 +00:00
%doc hadoop-dist/target/hadoop-%{hadoop_version}/share/doc/hadoop/common/LICENSE.txt
2013-12-03 18:00:52 +00:00
%files -f .mfiles-%{name}-tests tests
2013-09-13 15:24:35 +00:00
2013-12-03 18:00:52 +00:00
%files -f .mfiles-%{name}-yarn yarn
2013-08-20 20:06:04 +00:00
%config(noreplace) %{_sysconfdir}/%{name}/capacity-scheduler.xml
%config(noreplace) %{_sysconfdir}/%{name}/yarn-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/yarn-site.xml
%{_unitdir}/%{name}-nodemanager.service
%{_unitdir}/%{name}-proxyserver.service
%{_unitdir}/%{name}-resourcemanager.service
2014-05-27 17:12:24 +00:00
%{_unitdir}/%{name}-timelineserver.service
2013-08-20 20:06:04 +00:00
%{_libexecdir}/yarn-config.sh
2013-10-03 16:57:39 +00:00
%{_datadir}/%{name}/yarn
2013-08-20 20:06:04 +00:00
%{_bindir}/yarn
%{_sbindir}/yarn-daemon.sh
%{_sbindir}/yarn-daemons.sh
%{_sbindir}/start-yarn.sh
%{_sbindir}/stop-yarn.sh
%{_tmpfilesdir}/%{name}-yarn.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-yarn
%attr(0755,yarn,hadoop) %dir %{_var}/run/%{name}-yarn
%attr(0755,yarn,hadoop) %dir %{_var}/log/%{name}-yarn
%attr(0755,yarn,hadoop) %dir %{_var}/cache/%{name}-yarn
%files yarn-security
%config(noreplace) %{_sysconfdir}/%{name}/container-executor.cfg
# Permissions set per upstream guidelines: http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/ClusterSetup.html#Configuration_in_Secure_Mode
%attr(6050,root,yarn) %{_bindir}/container-executor
%changelog
2015-04-21 21:50:41 +00:00
* Tue Apr 21 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.1-8
- Fix building on ARMv7
2015-03-11 14:09:21 +00:00
* Wed Mar 11 2015 Swapnil Kulkarni <coolsvap@gmail.com> 2.4.1-7
- Added groovy18 dependency
2015-02-15 22:52:30 +00:00
* Sun Feb 15 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.1-7
- Update netty3 patch for 3.9.3
2014-10-28 12:17:38 +00:00
* Mon Oct 27 2014 Robert Rati <rrati@redhat> - 2.4.1-6
- Changed commons-httpclient BR/R to jakarta-commons-httpclient
- Changed commons-codec BR to apache-commons-codec
* Fri Oct 10 2014 Dan Horák <dan[at]danny.cz> - 2.4.1-5
- fix OOM during build on s390x and ppc64le (#1149295)
- fix Java detection on ppc64le
2014-10-08 18:23:51 +00:00
* Wed Oct 8 2014 Robert Rati <rrati@redhat> - 2.4.1-4
- Exclude asm3 as a runtime dependency
- Removed explict dependency on yarn from the mapreduce package
- Added mapreduce dependency on yarn package
2014-09-29 18:47:17 +00:00
* Mon Sep 29 2014 Robert Rati <rrati@redhat> - 2.4.1-3
- Rebuild
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-07-15 14:14:23 +00:00
* Tue Jul 15 2014 Robert Rati <rrati@redhat> - 2.4.1-1
- Update to upstream release 2.4.1
- Fixed resolution of test jars
2014-06-26 16:56:06 +00:00
* Thu Jun 26 2014 Robert Rati <rrati@redhat> - 2.4.0-3
- Fixed FTBFS (#1106748)
- Update to build with guava 17.0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-27 17:12:24 +00:00
* Tue May 27 2014 Robert Rati <rrati@redhat> - 2.4.0-1
- Update to upstream release 2.4.0
- Fix fedora conditionals for non-fedora systems (BZ1083135)
- Conditionalize javadoc generation
- Update BuildRequires
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.2.0-7
- Use Requires: java-headless rebuild (#1067528)
* Mon Feb 17 2014 Timothy St. Clair <tstclair@redhat.com> - 2.2.0-6
- Rebuild with modification to systemd initialization for tachyon support
2014-02-03 17:44:43 +00:00
* Mon Feb 3 2014 Robert Rati <rrati@redhat> - 2.2.0-5
- Added json_simple dependency to httpfs package
- Added default tomcat-users file
- Fixed up file permissions and ownership for tomcat configuration
- Conditionalize the zookeeper-test modes to < F21
- Additional fix for netty3 compat package for >F20
2014-01-24 21:02:12 +00:00
* Fri Jan 24 2014 Robert Rati <rrati@redhat> - 2.2.0-4
- Fixed 2 packages providing hadoop-yarn-server-tests (BZ1056521)
- Package httpfs bits using tomcat@ service
- Patches for jetty 9.1.0 and guava 0.15 on >F20
- Use netty3 compat package for >F20
- Moved limits configuration to systemd files
- By default logrotate will keep 1 year of logs
2013-12-03 20:32:16 +00:00
* Tue Dec 3 2013 Robert Rati <rrati@redhat> - 2.2.0-3
- Removed jline Requires
2013-12-03 18:00:52 +00:00
* Tue Dec 3 2013 Robert Rati <rrati@redhat> - 2.2.0-2
- Changed provides filter to just filter the .so
- Corrected naming of hadoop-common test jar
- Removed jline BuildRequires
- Moved pre/port install invocation of ldconfig to common-native
- Added workaround for bz1023116
2013-10-23 16:20:48 +00:00
* Wed Oct 23 2013 Robert Rati <rrati@redhat> - 2.2.0-1
- Update to upstream 2.2.0
- New patch to open libjvm with dlopen
- Conditionally compile libhdfs and deps for x86 only
- Added BR on objenesis >= 1.2-16
- Removed rpath from libhdfs
- Removed unneeded header files from devel
- Removed kfs removal patch
2013-10-10 21:42:15 +00:00
* Thu Oct 10 2013 Robert Rati <rrati@redhat> - 2.0.5-12
- Removed workaround for BZ1015612
- Filtered libhadoop provides/requires (BZ1017596)
- Fixed symlink for hdfs-bkjournal
- Moved libhdfs.so to devel package (BZ1017579)
- Fixed symlink paths for hadoop jars (BZ1017568)
- Added ownership of %{_datadir}/%{name}/hadoop/common
2013-10-07 19:27:15 +00:00
* Mon Oct 7 2013 Robert Rati <rrati@redhat> - 2.0.5-11
- Workaround for BZ1015612
- Added BuildRequires on gcc-g++ and make
- Removed duplicated deps from common package
2013-10-03 16:57:39 +00:00
* Thu Oct 3 2013 Robert Rati <rrati@redhat> - 2.0.5-10
- Added dependency on which
- Added pom files for test jars
- Removed workaround for BZ986909
- Packaged additional test jars and pom files
- Added workaround for bz1012059
- Updated hdfs-create-dirs to format the namenode if it is not formatted
- Spec cleanup
2013-09-13 15:24:35 +00:00
* Fri Sep 13 2013 Robert Rati <rrati@redhat> - 2.0.5-9
- Removed rcc. It was obsolete and conflicted with qt-devel (BZ1003034)
- Moved to xmvn-subst for jar dependency symlinks
- Packaged test jars into test subpackage
- hdfs subpackage contains bkjounal jar
- Created client subpackage
- Moved libhdfs to %{_libdir} (BZ1003036)
- Added dependency from libhdfs to hdfs (BZ1003039)
2013-08-28 13:28:23 +00:00
* Wed Aug 28 2013 Robert Rati <rrati@redhat> - 2.0.5-8
- Removed systemPath, version, and scope from tools.jar dependency definition
2013-08-20 20:06:04 +00:00
* Tue Aug 20 2013 Robert Rati <rrati@redhat> - 2.0.5-7
- Changed hdfs subpackage from hadoop-libhdfs to libhdfs
- Don't build any packages on arm architectures
* Thu Aug 08 2013 Robert Rati <rrati@redhat> - 2.0.5-6
- Made libhdfs dependencies arch specific
- Moved docs into common
* Wed Aug 07 2013 Robert Rati <rrati@redhat> - 2.0.5-5
- Corrected license info
- Removed duplicate Requires
- Removed rpath references
- Corrected some permissions
* Tue Aug 06 2013 Robert Rati <rrati@redhat> - 2.0.5-4
- Native bits only built/packaged for intel architectures
- javadoc only generated on 64-bit intel
- Updated URL
* Wed Jul 24 2013 Robert Rati <rrati@redhat> - 2.0.5-3
- Removed gmaven as BR
* Wed Jul 24 2013 Robert Rati <rrati@redhat> - 2.0.5-2
- Fixed packaging for JNI jar/libraries
- Made packages noarch that are architecture independent
- Added cglib as a BuildRequires
- Removed explicit lib Requires
- Convert to XMvn macros
- Packaged the maven plugin
- Convert to jetty9 jspc compiler
- Removed xmlenc workaround
* Tue Jul 16 2013 Robert Rati <rrati@redhat> - 2.0.5-1
- Initial packaging