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

Template not working with M1 MacBook #95

Open
AshciR opened this issue Jun 24, 2023 · 0 comments
Open

Template not working with M1 MacBook #95

AshciR opened this issue Jun 24, 2023 · 0 comments

Comments

@AshciR
Copy link

AshciR commented Jun 24, 2023

Hi, I'm following the Hello World tutorial found here and I ran into this issue:

WARNING: All illegal access operations will be denied in a future release
06/24 13:22:07 ERROR[main] o.a.c.u.NativeLibraryDarwin - Failed to link the C library against JNA. Native methods will be unavailable.
java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/dh/kynylzv95_vdqywhs1tw1v140000gn/T/jna--931221768/jna17123803835026746100.tmp
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2633) ~[na:na]
	at java.base/java.lang.Runtime.load0(Runtime.java:768) ~[na:na]
	at java.base/java.lang.System.load(System.java:1837) ~[na:na]
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
	at com.sun.jna.Native.<clinit>(Native.java:140) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
	at org.apache.cassandra.utils.NativeLibraryDarwin.<clinit>(NativeLibraryDarwin.java:53) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
	at org.apache.cassandra.utils.NativeLibrary.<clinit>(NativeLibrary.java:88) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:196) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:602) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691) ~[cassandra-bundle.jar:1.0.0-M0+46-b373604e]
06/24 13:22:07 ERROR[main] o.a.c.s.CassandraDaemon - The native library could not be initialized properly. 

From my research, it suggests the issue is caused by a JNA compatibility with the embedded Cassandra.

I've verified on my machine that I have jna-5.12.0.jar.

Can you assist with this?

JDK:
openjdk version "11.0.19" 2023-04-18 LTS
OpenJDK Runtime Environment Corretto-11.0.19.7.1 (build 11.0.19+7-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.19.7.1 (build 11.0.19+7-LTS, mixed mode)

Scala:
Scala code runner version 2.13.11 -- Copyright 2002-2023, LAMP/EPFL and Lightbend, Inc.

Machine:
Apple M1
2020 MacBook Pro

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

No branches or pull requests

1 participant