lamber-ken opened a new pull request #1369: [HUDI-553] Building/Running Hudi on higher java versions URL: https://github.com/apache/incubator-hudi/pull/1369 ## What is the purpose of the pull request Support building/running Hudi on higher java versions (8 & 11). ## Brief change log 1. `package javax.xml.bind does not exist` - sun.misc.BASE64Encoder/Decoder (JDK 6,7,8) - javax.xml.bind.DatatypeConverter (JDK 6,7,8) - java.util.Base64.{Encoder, Decoder} (JDK 8,9,11) 2. Need upgrade to `scala-2.11.12` https://github.com/sbt/zinc/issues/641 ``` [ERROR] error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found. [ERROR] at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17) [ERROR] at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18) [ERROR] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53) ``` 3. `java.lang.NoClassDefFoundError: javax/tools/ToolProvider` https://github.com/davidB/scala-maven-plugin/issues/217 ``` [ERROR] error: java.lang.NoClassDefFoundError: javax/tools/ToolProvider [INFO] at scala.reflect.io.JavaToolsPlatformArchive.iterator(ZipArchive.scala:301) [INFO] at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) [INFO] at scala.reflect.io.AbstractFile.foreach(AbstractFile.scala:92) [INFO] at scala.tools.nsc.util.DirectoryClassPath.traverse(ClassPath.scala:277) [INFO] at scala.tools.nsc.util.DirectoryClassPath.x$15$lzycompute(ClassPath.scala:299) [INFO] at scala.tools.nsc.util.DirectoryClassPath.x$15(ClassPath.scala:299) ``` ## Verify this pull request `Spark-2.4.4` doesn't support JDK 9 https://issues.apache.org/jira/browse/SPARK-24417 Using `spark-3.0.0-preview2-bin-hadoop2.7` and `hudi - 2.12` ``` mvn clean package -DskipTests -Dscala-2.12 ``` ``` /bin/spark-shell \ --packages org.apache.spark:spark-avro_2.12:2.4.4 \ --jars `ls packaging/hudi-spark-bundle/target/hudi-spark-bundle_*.*-*.*.*-SNAPSHOT.jar` \ --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' ``` ## Committer checklist - [X] Has a corresponding JIRA in PR title & commit - [X] Commit message is descriptive of the change - [ ] CI is green - [ ] Necessary doc changes done or have another open PR - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services