Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22659

remove sun.misc.Cleaner references

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None

      Description

      build with scala-2.12 with following steps
      1. change the pom.xml with scala-2.12

       ./dev/change-scala-version.sh 2.12
      

      2.build with -Pscala-2.12

      ./dev/make-distribution.sh   --tgz -Pscala-2.12 -Phadoop-2.7  -Pyarn -Pparquet-provided -Dhadoop.version=2.7.3
      

      get the error

      /common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java:172: error: cannot find       symbol
          Cleaner cleaner = Cleaner.create(buffer, () -> freeMemory(memory));
      

      This is because sun.misc.Cleaner has been moved to new location in JDK9. HADOOP-12760 will be the long term fix

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kellyzly liyunzhang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: