Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-35781 Support Spark on Apple Silicon on macOS natively on Java 17
  3. SPARK-36019

Cannot run leveldb related UTs on Mac OS of M1 architecture

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.3.0
    • None
    • Build
    • None

    Description

      When run leveldb related UTs on Mac OS of M1 architecture, there are some test failed as follows:

      [INFO] Running org.apache.spark.util.kvstore.LevelDBSuite
      [ERROR] Tests run: 10, Failures: 0, Errors: 10, Skipped: 0, Time elapsed: 0.18 s <<< FAILURE! - in org.apache.spark.util.kvstore.LevelDBSuite
      [ERROR] org.apache.spark.util.kvstore.LevelDBSuite.testMultipleTypesWriteReadDelete  Time elapsed: 0.146 s  <<< ERROR!
      java.lang.UnsatisfiedLinkError: 
      Could not load library. Reasons: [no leveldbjni64-1.8 in java.library.path, no leveldbjni-1.8 in java.library.path, no leveldbjni in java.library.path, /Users/yangjie01/SourceCode/git/spark-mine-12/common/kvstore/target/tmp/libleveldbjni-64-1-7259526109351494242.8: dlopen(/Users/yangjie01/SourceCode/git/spark-mine-12/common/kvstore/target/tmp/libleveldbjni-64-1-7259526109351494242.8, 1): no suitable image found.  Did find:
      	/Users/yangjie01/SourceCode/git/spark-mine-12/common/kvstore/target/tmp/libleveldbjni-64-1-7259526109351494242.8: no matching architecture in universal wrapper
      	/Users/yangjie01/SourceCode/git/spark-mine-12/common/kvstore/target/tmp/libleveldbjni-64-1-7259526109351494242.8: no matching architecture in universal wrapper]
      	at org.apache.spark.util.kvstore.LevelDBSuite.setup(LevelDBSuite.java:55)
      
      
      [ERROR] org.apache.spark.util.kvstore.LevelDBSuite.testObjectWriteReadDelete  Time elapsed: 0 s  <<< ERROR!
      java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.leveldbjni.JniDBFactory
      	at org.apache.spark.util.kvstore.LevelDBSuite.setup(LevelDBSuite.java:55)
      
      ....
      
      [ERROR] Tests run: 105, Failures: 0, Errors: 48, Skipped: 0

      There seems to be a lack of JNI support

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: