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

override JNA for Aarch64 / Arm64 / Mac M1 support #988

Closed
wants to merge 1 commit into from

Conversation

yoppworks-andrew
Copy link

Tested locally on an M1 Mac by running cassandraBundle/assembly, then checking that the CassandraLauncherSpec passes.

@lightbend-cla-validator

Hi @yoppworks-andrew,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

https://www.lightbend.com/contribute/cla

@@ -50,6 +50,7 @@ lazy val cassandraBundle = project
libraryDependencies += ("org.apache.cassandra" % "cassandra-all" % "3.11.3")
.exclude("commons-logging", "commons-logging"),
dependencyOverrides += "com.github.jbellis" % "jamm" % "0.3.3", // See jamm comment in https://issues.apache.org/jira/browse/CASSANDRA-9608
dependencyOverrides += "net.java.dev.jna" % "jna" % "5.12.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading a comment here: https://issues.apache.org/jira/browse/CASSANDRA-16212?focusedCommentId=17230445&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17230445

I'm a bit cautious bumping it like this, since it seems it could break the launcher on other platforms.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand. I've put together a step-by-step guide for working around this issue on M1 Macs here: https://github.com/awwsmm/apc-mwe

The TL;DR is that you can generate your own cassandra-bundle.jar by running the cassandraBundle/assembly task in akka-persistence-cassandra, then use that jar in third-party applications that depend on akka-persistence-cassandra.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing that up! 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants