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

ctubbsii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/fluo-uno.git


The following commit(s) were added to refs/heads/master by this push:
     new c3212c5  Add javax.activation-api to Hadoop 3 class path (#227)
c3212c5 is described below

commit c3212c5b75b93a81830d22a3e6bdf0155ce1f2f1
Author: Christopher Tubbs <[email protected]>
AuthorDate: Wed Jun 19 14:36:40 2019 -0400

    Add javax.activation-api to Hadoop 3 class path (#227)
    
    Add missing javax.activation:javax.activation-api:1.2.0 to Hadoop 3's
    runtime class path so that YARN starts correctly using Java 11.
---
 bin/impl/install/hadoop.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/impl/install/hadoop.sh b/bin/impl/install/hadoop.sh
index 8de97f8..70832b3 100755
--- a/bin/impl/install/hadoop.sh
+++ b/bin/impl/install/hadoop.sh
@@ -41,6 +41,10 @@ if [[ $HADOOP_VERSION =~ ^2\..*$ ]]; then
   cp "$UNO_HOME"/conf/hadoop/2/* "$hadoop_conf/"
 else
   cp "$UNO_HOME"/conf/hadoop/3/* "$hadoop_conf/"
+  # need the following for Java 11, because Hadoop doesn't include it
+  mvn dependency:copy \
+    -Dartifact=javax.activation:javax.activation-api:1.2.0 \
+    -DoutputDirectory="$HADOOP_HOME/share/hadoop/common/lib/"
 fi
 
 $SED "s#UNO_HOST#$UNO_HOST#g" "$hadoop_conf/core-site.xml" 
"$hadoop_conf/hdfs-site.xml" "$hadoop_conf/yarn-site.xml"

Reply via email to