Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64" #573

Open
martinwunderlich-celonis opened this issue Apr 17, 2024 · 0 comments

Comments

@martinwunderlich-celonis

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant