You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Deepak Nair (JIRA)" <ji...@apache.org> on 2018/10/24 15:35:00 UTC

[jira] [Created] (SPARK-25820) Spark build fails with Java 9

Deepak Nair created SPARK-25820:
-----------------------------------

             Summary: Spark build fails with Java 9
                 Key: SPARK-25820
                 URL: https://issues.apache.org/jira/browse/SPARK-25820
             Project: Spark
          Issue Type: Bug
          Components: Build
    Affects Versions: 2.3.2
         Environment: ProductName: Mac OS X
ProductVersion: 10.14
BuildVersion: 18A391
            Reporter: Deepak Nair


Spark build fails with *Java 9* since sun.misc.Cleaner referred in Platform.java does not exist anymore. This should be replaced with java.lang.ref.Cleaner.

 

*Additional information:*

https://docs.oracle.com/javase/9/docs/api/java/lang/ref/Cleaner.html

The create method accepts only the Threadable object.

 

*Error Log :*

[error] warning: [options] bootstrap class path not set in conjunction with -source 1.8
[error] /Users/deepaknair/myprojects/spark/common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java:25: error: cannot find symbol
[error] import sun.misc.Cleaner;
[error] ^
[error] symbol: class Cleaner
[error] location: package sun.misc
[error] /Users/deepaknair/myprojects/spark/common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java:172: error: cannot find symbol
[error] Cleaner cleaner = Cleaner.create(buffer, () -> freeMemory(memory));
[error] ^
[error] symbol: class Cleaner
[error] location: class Platform
[error] /Users/deepaknair/myprojects/spark/common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java:172: error: cannot find symbol
[error] Cleaner cleaner = Cleaner.create(buffer, () -> freeMemory(memory));
[error] ^
[error] symbol: variable Cleaner
[error] location: class Platform
[error] 3 errors
[error] 1 warning
[error] Compile failed at Oct 24, 2018, 8:31:37 AM [0.094s]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM 3.0.0-SNAPSHOT ............ SUCCESS [ 2.433 s]
[INFO] Spark Project Tags ................................. SUCCESS [ 0.969 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 1.710 s]
[INFO] Spark Project Local DB ............................. SUCCESS [ 1.081 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 2.983 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 1.042 s]
[INFO] Spark Project Unsafe ............................... FAILURE [ 0.272 s]

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org