From 1591fbab462435f9b6e3e56e0add3014c2ad2aed Mon Sep 17 00:00:00 2001 From: Mike Miller Date: Fri, 17 Mar 2017 16:19:08 -0400 Subject: [PATCH] Fixed classpath issues --- classpath.patch | 12 ++++++++++++ hadoop.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 classpath.patch diff --git a/classpath.patch b/classpath.patch new file mode 100644 index 0000000..43706bb --- /dev/null +++ b/classpath.patch @@ -0,0 +1,12 @@ +diff --git a/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh b/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh +index b82267d..9d1ad5e 100644 +--- a/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh ++++ b/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh +@@ -40,6 +40,7 @@ for f in $HADOOP_HOME/contrib/capacity-scheduler/*.jar; do + export HADOOP_CLASSPATH=$f + fi + done ++export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/share/java/netty/netty-common.jar:/usr/share/java/netty/netty-transport.jar:/usr/share/java/jctools/jctools-core.jar:/usr/share/java/netty/netty-buffer.jar + + # The maximum amount of heap to use, in MB. Default is 1000. + #export HADOOP_HEAPSIZE= diff --git a/hadoop.spec b/hadoop.spec index 225b317..a2bace2 100644 --- a/hadoop.spec +++ b/hadoop.spec @@ -11,7 +11,7 @@ Name: hadoop Version: 2.7.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A software platform for processing vast amounts of data # The BSD license file is missing # https://issues.apache.org/jira/browse/HADOOP-9849 @@ -66,6 +66,8 @@ Patch19: protobuf3.patch Patch21: %{name}-openssl.patch # fix exception no longer thrown in aws Patch22: %{name}-aws.patch +# fix classpath issues +Patch23: classpath.patch # 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 @@ -1136,6 +1138,9 @@ fi %attr(6050,root,yarn) %{_bindir}/container-executor %changelog +* Fri Mar 17 2017 Mike Miller - 2.7.3-2 +- Fix classpath issues + * Thu Mar 02 2017 Mike Miller - 2.7.3-1 - Update to 2.7.3