How to solve jna problem in cassandra1.1.2

I am using cassandra 1.1.2 on ubuntu os. In the beginning I see the following log:

INFO 14:42:59,319 JNA not found. Native methods will be disabled.

I found this problem , but I'm not sure about the versions and where I should find these files.

Can someone describe the exact steps to solve this problem. Thanks

+5
source share
2 answers

Do it:

$ ln -s /usr/share/java/jna.jar /usr/share/cassandra/lib

It will work;) He will turn to Jna mlockall;)

+7
source

First install lib-jna:

sudo apt-get install libjna-java

Then create a symlink in the cassandra lib directory (assuming it $CASSANDRA_HOMEis your installation directory):

ln -s /usr/share/java/jna.jar $CASSANDRA_HOME/lib/

The JNA log message in your Cassandra ( JNA not found. Native methods will be disabled.) run should not disappear, and Cassandra will use JNA.

+1

All Articles