-
Notifications
You must be signed in to change notification settings - Fork 135
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
akka-persistence-cassandra-launcher fails to start on arm64 (aka. aarch64 / Mac M1) architecture #986
Comments
Looks like the JNA lib pulled in by Cassandra does not support arm64, this SO post suggests you could potentially bump the transitive JNA dependency to a newer version that does support arm64 so that might be worth trying out: https://stackoverflow.com/questions/69486339/nativelibrarydarwin-java64-failed-to-link-the-c-library-against-jna-native-m Another workaround would be ro run a amd64 JDK 11 instead of a native aarch64 JDK. |
This works fine when running a local install of Cassandra (for example using What sort of |
I would recommend using docker-compose instead of the CassandraLauncher. You can find example in https://developer.lightbend.com/docs/akka-platform-guide/how-to/cassandra-alternative.html#_run_locally Testcontainers is another alternative, and you can find inspiration in https://github.com/akka/akka-projection/tree/main/akka-projection-cassandra |
Unfortunately, moving away from CassandraLauncher isn't an option for me. Tested this PR locally and it seems to work #988 |
For posterity, MWE showing how to manually work around this problem on M1 / ARM64 / AArch64 Macs: https://github.com/awwsmm/apc-mwe You can generate your own |
CassandraLauncher now dropped in #1054, so I'll close this. Thanks for sharing your workaround @yoppworks-andrew |
Versions used
Attempted with akka-persistence-cassandra 1.0.5 and 1.0.6, and with Zulu JDKs 1.8.0_345, 11.0.15, 11.0.16, 17.0.4, 18.0.2, and 19
Expected Behavior
Running a minimal example in IntelliJ using Scala, akka-persistence-cassandra fails to start. MWE follows
(Dummy
logback-test.xml
must be included as well.)Actual Behavior
Different exceptions are thrown for different JDK versions
Java 8
Java 11.0.15 / 11.0.16
Java 17.0.4
Java 18.0.2 / Java 19
Relevant logs
If you identified a section in your logs that explains the bug or might be important to understand it, please add it.
Reproducible Test Case
Please provide a PR with a failing test.
If the issue is more complex or requires configuration, please provide a link to a project that reproduces the issue.
The text was updated successfully, but these errors were encountered: