mdedetrich commented on issue #109:
URL: https://github.com/apache/pekko-samples/issues/109#issuecomment-3442642513
> Thank you for your fast reply. I understand if the project works in Java 8
or 11 I can just try it with that version.
>
> So it's runs on JDK11 for you ? I've switched back to Java 11 now, when
running the first cassandra step I get this error.
>
> ```
> [info] welcome to sbt 1.11.7 (Homebrew Java 11.0.29)
> [info] loading global plugins from /Users/peter.van.dijk/.sbt/1.0/plugins
> [info] loading project definition from
/Users/peter.van.dijk/sideprojects/pekko-samples/pekko-sample-distributed-workers-scala/project
> [info] loading settings for project pekko-sample-distributed-workers-scala
from build.sbt...
> [info] set current project to pekko-distributed-workers-scala (in build
file:/Users/peter.van.dijk/sideprojects/pekko-samples/pekko-sample-distributed-workers-scala/)
> [info] compiling 10 Scala sources to
/Users/peter.van.dijk/sideprojects/pekko-samples/pekko-sample-distributed-workers-scala/target/scala-3.3.7/classes
...
> [warn] -- [E029] Pattern Match Exhaustivity Warning:
/Users/peter.van.dijk/sideprojects/pekko-samples/pekko-sample-distributed-workers-scala/src/main/scala/worker/Main.scala:21:9
> [warn] 21 | args.headOption match {
> [warn] | ^^^^^^^^^^^^^^^
> [warn] | match may not be exhaustive.
> [warn] |
> [warn] | It would fail on pattern case: Some(_)
> [warn] |
> [warn] | longer explanation available when compiling with `-explain`
> [warn] one warning found
> [info] running (fork) worker.Main cassandra
> [info] Starting Cassandra on port client port: 9042 storage port 54341
host 127.0.0.1 java version 11.0.29+0
> [error] WARNING: An illegal reflective access operation has occurred
> [error] WARNING: Illegal reflective access by
org.apache.cassandra.utils.FBUtilities
(file:/Users/peter.van.dijk/sideprojects/pekko-samples/pekko-sample-distributed-workers-scala/target/cassandra-db/cassandra-bundle.jar)
to field java.io.FileDescriptor.fd
> [error] WARNING: Please consider reporting this to the maintainers of
org.apache.cassandra.utils.FBUtilities
> [error] WARNING: Use --illegal-access=warn to enable warnings of further
illegal reflective access operations
> [error] WARNING: All illegal access operations will be denied in a future
release
> [info] 10/24 11:49:42 ERROR[main] o.a.c.u.NativeLibraryDarwin - Failed to
link the C library against JNA. Native methods will be unavailable.
> [info] java.lang.UnsatisfiedLinkError: Can't load library:
/var/folders/vn/tl9yvd2n42v_348c7f67fm7h0000gq/T/jna-1038551571/jna3654608662811854637.tmp
> [info] at
java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2638) ~[na:na]
> [info] at java.base/java.lang.Runtime.load0(Runtime.java:768) ~[na:na]
> [info] at java.base/java.lang.System.load(System.java:1854) ~[na:na]
> [info] at
com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
~[cassandra-bundle.jar:1.1.0]
> [info] at
com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
~[cassandra-bundle.jar:1.1.0]
> [info] at com.sun.jna.Native.<clinit>(Native.java:140)
~[cassandra-bundle.jar:1.1.0]
> [info] at
org.apache.cassandra.utils.NativeLibraryDarwin.<clinit>(NativeLibraryDarwin.java:53)
~[cassandra-bundle.jar:1.1.0]
> [info] at
org.apache.cassandra.utils.NativeLibrary.<clinit>(NativeLibrary.java:88)
~[cassandra-bundle.jar:1.1.0]
> [info] at
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:196)
~[cassandra-bundle.jar:1.1.0]
> [info] at
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:602)
~[cassandra-bundle.jar:1.1.0]
> [info] at
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691)
~[cassandra-bundle.jar:1.1.0]
> [info] 10/24 11:49:42 ERROR[main] o.a.c.s.StartupChecks -
cassandra.jmx.local.port missing from cassandra-env.sh, unable to start local
JMX service.
> [info] 10/24 11:49:42 ERROR[main] o.a.c.s.CassandraDaemon - The native
library could not be initialized properly.```
> ```
Considering we are getting a JNA error against a C library, this very well
seems to be an issue regarding running Cassandra on architectures it wasn't
compiled on (and Apple M series silicon can be one of them)
I am with @pjfanning here though, this is entirely a Cassandra issue (Pekko
just wraps the underlying core library). The best we can do is add some error
detection depending on the architecture and version of Cassandra, but even that
is a stretch (and honestly this functionality should be in Cassandra core)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]