Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Start by reading SnappyLoader.findNativeLibrary in SnappyLoader.java and checking how it maps Mac and aarch64 to the native library path; the report says the jar contains the dylib under org/xerial/snappy/native/Mac/aarch64. Reproduce with the reported Java 17 and Apple Silicon setup if available, then check the native-loading tests. Done when the bundled library is found and loaded for this platform.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hello snappy team,
running an application on Mac M1 Pro with Ventura 13.6.6, Java Temurin-17.0.9+9 and Snappy 1.1.10.5, I keep getting the following error:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
at org.apache.parquet.hadoop.DirectCodecFactory$SnappyCompressor.compress(DirectCodecFactory.java:291)
...
Caused by: java.lang.ExceptionInInitializerError: Exception org.xerial.snappy.SnappyError: no native library is found for os.name=Mac and os.arch=aarch64
at org.xerial.snappy.SnappyLoader.findNativeLibrary(SnappyLoader.java:331)
at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:171)
at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:152)
at org.xerial.snappy.Snappy.<clinit>(Snappy.java:47)
Snappy is brought in here as a transitive dependency via Apache parque-hadoop 1.10.1.
I have already extracted the Snappy jar and verified that it contains the file libsnappyjava.dylib under org/xerial/snappy/native/Mac/aarch64.
Is it a known issue? Any idea how to fix this? Thanks.
- Langage dominant
- Java
- Étoiles
- 1.1k
- Forks
- 261
- Merge moyen
- 2 min
- PR mergées (30 j)
- 2
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de xerial/snappy-java
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
xerial/snappy-java#658 · 3 commentaires · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 56/100
xerial/snappy-java#607 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
xerial/snappy-java#604 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
xerial/snappy-java#603 · 3 commentaires ·
-
编译 snappy java 1.0.4.1 出现 errorOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
xerial/snappy-java#567 · 1 commentaire ·
Toutes les issues de xerial/snappy-java
Issues similaires
-
triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
xerial/sqlite-jdbc#1515 ·
Les mainteneurs répondent en général sous 1 jour
-
Area/Configuration Type/Improvement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
eclipse-dirigible/dirigible#8636 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug severity-medium XS
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
OakLoaf/PluginUpdater#264 ·
Les mainteneurs répondent en général sous 1 jour