JNA link failure Error on Cassandra Startup on OS X - cassandra

Note: I know that here is same question, but it's enviroment is window so I created it. JNA link failure Error on Cassandra Startup
I try to start cassandra but I get a warning below:
$ cassandra
...
WARN 09:13:42 JNA link failure, one or more native method will be unavailable.
WARN 09:13:42 JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
Please tell me how to solve this problem.
My enviroment:
Cassandra v2.2.0 with Homebrew
OS X 10.10

JNA is used for optimizations such as disabling swapping and creating hardlinks during snapshots. It is recommended for production systems. Dev systems should also be fine without JNA support, so you can just ignore the warning.

Related

Cassandra is active (exited) after starting

I am trying to get Cassandra to work on Linux Mint and I follow these instructions on Youtube (https://www.youtube.com/watch?v=pGhkX5z_vW8&list=PLalrWAGybpB-L1PGA-NfFu2uiWHEsdscD&index=4). They are the same like in the documentation:
JRE is openjdk version 1.8.0_242.
Cassandra is version 3.11.
My system is Linux Mint 19.3.
After starting Cassandra, I get this in my console:
There seems to be two problems, although I think if I fix one, I fix both:
(1) after "sudo service cassandra status" --> active (exited) should be active (running)
(2) after "nodetool status" --> Conncetion refused
Any idea? Thanks
I don't know, if this is a common problem or because of my ignorance. I could not make Cassandra work via Debian packages, but the INSTALLATION VIA BINARY TARBALL FILES worked fine on my machine. Here is the link to the official homepage:
https://cassandra.apache.org/doc/latest/getting_started/installing.html
You should check listen_address and rpc_address whether it is default or server IP if not you have to update the IP address then try nodetool status with host. It should work.

Cassandra windows, won't start up

Installed it, Datastax CE, at first came up, but OpsCenter said agent was not up, although it seemed to be running.
So I reboot, hoping it might be happier. Opposite. Now Cassandra Service and Agent won't even start.
Going into logs I see
2015-07-28 16:12:47 Commons Daemon procrun stdout initialized
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Any idea what else I have to do? I have JDK 1.8, Eclipse etc. Nothing else complains.
Thanks
If cassandra won't start do the following:
1) try renaming the following path
C:\Program Files\DataStax-DDC\data\commitlog
2) if it doesn't work start cassandra as follows:
C:\Program Files\DataStax-DDC\apache-cassandra\bin>cassandra.bat
the console should tell you where the error is.
Good luck!

JNA link failure Error on Cassandra Startup

I am am trying to run Cassandra instance through eclipse on Windows.
In Eclipse run configuration I have specified org.apache.cassandra.service.CassandraDaemon class and in VM arguments I have specified below mentioned VM arguments :
-Dcassandra.config=file:C:\nw_servers\apache-cassandra-2.1.3\conf\cassandra.yaml
-Dcassandra-foreground
-ea -Xmx1G
-Dlog4j.configuration=file:C:\nw_servers\apache-cassandra-2.1.3\conf\log4j-server.properties
When I run the CassandraDaemon class in eclipse i get below mentioned error.
WARN 02:23:07 JNA link failure, one or more native method will be unavailable.
WARN 02:23:07 JNA link failure, one or more native method will be unavailable.

JNA failure in Cassandra

I'm using Cassandra 1.2.3 on Windows, I have downloaded and copied Jna.jar and Platform.jar to C:\Program Files (x86)\apache-cassandra-1.2.3\lib , but when I run Cassandra I get this message
INFO 16:20:42,839 JNA link failure, one or more native method will be unavailable.
I didn't found any solution to fix it in Windows
Cassandra does not support JNA on windows. It only knows how to link libc, which does not exist there.

Issues with newest version (cassandra 1.15)

I tried installing newest cassandra version using the tarball binary available at -
http://www.apache.org/dyn/closer.cgi?path=/cassandra/1.1.5/apache-cassandra-1.1.5-bin.tar.gz
I followed the instructions provided from the the getting started page.
But when i run cassandra by ./cassandra -f , i get the following error#
amt#amtlt2:~/Downloads/apache-cassandra-1.1.5/bin$ ./cassandra -f
xss = -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:
+UseThreadPriorities-XX:ThreadPriorityPolicy=42 -Xms4G
Xmx4G -Xmn800M -XX:+HeapDumpOnOutOfMemoryError -Xss180k
P.S. i am installing on a server.
well i don,t have a problem with java because i am running the latest version and this version works in my other PC where cassandra is configured.
amt#amtlt2:~/Downloads/apache-cassandra-1.1.5/bin$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
and i also feel its got nothing to do with heap size because its set to very high value
# The example HEAP_NEWSIZE assumes a modern 8-core+ machine for decent pause
# times. If in doubt, and if you do not particularly want to tweak, go with
# 100 MB per physical CPU core.
MAX_HEAP_SIZE="4G"
HEAP_NEWSIZE="800M"
the interesting thing is, if i follow same instructions and download the (unsupported) cassandra 1.12 release version. It works like a gem with same configuration as i did above.
Any help really appreciated.Point out in case i am doing something wrong here.
You don't actually have an error being logged. -XX:+HeapDumpOnOutOfMemoryError is actually a command-line option to the java command telling it to do a heap dump if it OOMs.

Resources