Skip to content
Permalink
Browse files
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.
  • Loading branch information
ctubbsii committed Jun 19, 2019
1 parent b846945 commit c3212c5b75b93a81830d22a3e6bdf0155ce1f2f1
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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"

0 comments on commit c3212c5

Please sign in to comment.