Spark 2.x 用于 Java 11 时出现以下错误
Exception in thread "main" java.lang.IllegalArgumentException: Unsupported class file major version 55
Spark 3.0 是否与 Java 11 具有这种兼容性?
有没有其他解决方法可以将 Java 11 与 Spark 一起使用?
最佳答案
Spark runs on Java 8/11, Scala 2.12, Python 2.7+/3.4+ and R 3.1+. Java 8 prior to version 8u92 support is deprecated as of Spark 3.0.0. Python 2 and Python 3 prior to version 3.6 support is deprecated as of Spark 3.0.0. R prior to version 3.4 support is deprecated as of Spark 3.0.0. For the Scala API, Spark 3.0.0 uses Scala 2.12. You will need to use a compatible Scala version (2.12.x).
所以 Spark 3.x 可以与 Java11 一起使用,Spark 2.x 不像 this answer 中指出的那样.
关于apache-spark - 用于 Java 11 的 Spark,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62894890/