javeme commented on PR #2060:
URL:
https://github.com/apache/incubator-hugegraph/pull/2060#issuecomment-1365254510
cassandra can't run on mac m1:
```java
➜ bin/cassandra
➜ apache-cassandra-3.11.14 [0.001s][warning][gc] -Xloggc is deprecated.
Will use -Xlog:gc:bin/../logs/gc.log instead.
intx ThreadPriorityPolicy=42 is outside the allowed range [ 0 ... 1 ]
Improperly specified VM option 'ThreadPriorityPolicy=42'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
```
```java
➜ bin/cassandra
The stack size specified is too small, Specify at least 640k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
➜ apache-cassandra-3.11.14 vim conf/jvm.options
```
```java
ERROR [main] 2022-12-26 23:40:03,898 NativeLibraryDarwin.java:64 - Failed to
link the C library against JNA. Native methods will be unavailable.
java.lang.UnsatisfiedLinkError:
/private/var/folders/3q/9d9hmtzd6c397wsb1fchsvyh0000gn/T/jna-101015171/jna6875563382134887427.tmp:
dlopen(/private/var/folders/3q/9d9hmtzd6c397wsb1fchsvyh0000gn/T/jna-101015171/jna6875563382134887427.tmp,
0x0001): tried:
'/private/var/folders/3q/9d9hmtzd6c397wsb1fchsvyh0000gn/T/jna-101015171/jna6875563382134887427.tmp'
(fat file, but missing compatible architecture (have (i386,x86_64), need
(arm64e)))
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1950)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1832)
at java.lang.Runtime.load0(Runtime.java:783)
at java.lang.System.load(System.java:1100)
at
com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
at com.sun.jna.Native.<clinit>(Native.java:140)
at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:84)
at
org.apache.cassandra.utils.NativeLibraryDarwin.<clinit>(NativeLibraryDarwin.java:55)
at
org.apache.cassandra.utils.NativeLibrary.<clinit>(NativeLibrary.java:90)
at
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:212)
at
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:633)
at
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:786)
WARN [main] 2022-12-26 23:40:03,899 StartupChecks.java:136 - jemalloc
shared library could not be preloaded to speed up memory allocations
WARN [main] 2022-12-26 23:40:03,899 StartupChecks.java:169 - JMX is not
enabled to receive remote connections. Please see cassandra-env.sh for more
info.
ERROR [main] 2022-12-26 23:40:03,899 CassandraDaemon.java:803 - The native
library could not be initialized properly.
```
--
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]