Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.3.0
-
None
-
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
- duplicates
-
SPARK-35782 leveldbjni doesn't work in Apple Silicon on macOS
- Open