Why apache spark does not work with java 10? We get illegal reflective then java.lang.IllegalArgumentException

前端 未结 3 1293
梦如初夏
梦如初夏 2021-02-05 09:51

Is there any technical reason why spark 2.3 does not work with java 1.10 (as of July 2018)?

Here is the output when I run SparkPi example using spark-submit

3条回答
  •  故里飘歌
    2021-02-05 10:33

    Primary technical reason is that Spark depends heavily on direct access to native memory with sun.misc.Unsafe, which has been made private in Java 9.

    • https://issues.apache.org/jira/browse/SPARK-24421
    • http://apache-spark-developers-list.1001551.n3.nabble.com/Java-9-td20875.html

提交回复
热议问题