cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Dunphy <bluethu...@gmail.com>
Subject Re: JNA not found.
Date Tue, 29 Jan 2013 17:19:31 GMT
Hi Chandra,

Thanks for your reply. Well I have added both jna.jar and platform.jar to
my lib directory (jna 3.3.0):

[root@cassandra-node01 cassandrahome]# ls -l lib/jna.jar lib/platform.jar
-rw-r--r-- 1 root root 865400 Jan 29 12:14 lib/jna.jar
-rw-r--r-- 1 root root 841291 Jan 29 12:14 lib/platform.jar

But sadly I get the same result:

[root@cassandra-node01 cassandrahome]# ./bin/cassandra -f
xss =  -ea -javaagent:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar
-XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms295M -Xmx295M
-Xmn73M -XX:+HeapDumpOnOutOfMemoryError -Xss180k
 INFO 12:14:52,493 Logging initialized
 INFO 12:14:52,507 JVM vendor/version: Java HotSpot(TM) 64-Bit Server
VM/1.6.0_34
 INFO 12:14:52,507 Heap size: 301727744/302776320
 INFO 12:14:52,508 Classpath:
/etc/alternatives/cassandrahome/conf:/etc/alternatives/cassandrahome/build/classes/main:/etc/alternatives/cassandrahome/build/classes/thrift:/etc/alternatives/cassandrahome/lib/antlr-3.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.2.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.2.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.2.1.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-fixes.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-sources-fixes.jar:/etc/alternatives/cassandrahome/lib/commons-cli-1.1.jar:/etc/alternatives/cassandrahome/lib/commons-codec-1.2.jar:/etc/alternatives/cassandrahome/lib/commons-lang-2.6.jar:/etc/alternatives/cassandrahome/lib/compress-lzf-0.8.4.jar:/etc/alternatives/cassandrahome/lib/concurrentlinkedhashmap-lru-1.3.jar:/etc/alternatives/cassandrahome/lib/guava-13.0.1.jar:/etc/alternatives/cassandrahome/lib/high-scale-lib-1.1.2.jar:/etc/alternatives/cassandrahome/lib/jackson-core-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jackson-mapper-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar:/etc/alternatives/cassandrahome/lib/jline-1.0.jar:/etc/alternatives/cassandrahome/lib/jna.jar:/etc/alternatives/cassandrahome/lib/json-simple-1.1.jar:/etc/alternatives/cassandrahome/lib/libthrift-0.7.0.jar:/etc/alternatives/cassandrahome/lib/log4j-1.2.16.jar:/etc/alternatives/cassandrahome/lib/metrics-core-2.0.3.jar:/etc/alternatives/cassandrahome/lib/netty-3.5.9.Final.jar:/etc/alternatives/cassandrahome/lib/platform.jar:/etc/alternatives/cassandrahome/lib/servlet-api-2.5-20081211.jar:/etc/alternatives/cassandrahome/lib/slf4j-api-1.7.2.jar:/etc/alternatives/cassandrahome/lib/slf4j-log4j12-1.7.2.jar:/etc/alternatives/cassandrahome/lib/snakeyaml-1.6.jar:/etc/alternatives/cassandrahome/lib/snappy-java-1.0.4.1.jar:/etc/alternatives/cassandrahome/lib/snaptree-0.1.jar:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar
Killed

And still when I remove those library files cassandra starts without a
problem exception the fact that it is not able to use JNA.

I'd appreciate any input the list might have.

Thanks
Tim

On Tue, Jan 29, 2013 at 8:54 AM, chandra Varahala <
hadoopandcassandra@gmail.com> wrote:

> I think you need Jna  jar and  jna-plaform jar in  cassandra lib folder
>
> -chandra
>
>
>
> On Mon, Jan 28, 2013 at 10:02 PM, Tim Dunphy <bluethundr@gmail.com> wrote:
>
>> I went to github to try to download jna again. I downloaded version 3.5.1
>>
>> [root@cassandra-node01 cassandrahome]# ls -l lib/jna-3.5.1.jar
>> -rw-r--r-- 1 root root 692603 Jan 28 21:57 lib/jna-3.5.1.jar
>>
>> I noticed in the datastax docs that java 7 was not recommended so I
>> downgraded to java 6
>>
>> [root@cassandra-node01 cassandrahome]# java -version
>> java version "1.6.0_34"
>> Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)
>>
>> And now if I try to start cassandra with that library it fails with this
>> message:
>>
>> [root@cassandra-node01 cassandrahome]# ./bin/cassandra -f
>> xss =  -ea -javaagent:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar
>> -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms295M -Xmx295M
>> -Xmn73M -XX:+HeapDumpOnOutOfMemoryError -Xss180k
>>  INFO 22:00:14,318 Logging initialized
>>  INFO 22:00:14,333 JVM vendor/version: Java HotSpot(TM) 64-Bit Server
>> VM/1.6.0_34
>>  INFO 22:00:14,334 Heap size: 301727744/302776320
>>  INFO 22:00:14,334 Classpath:
>> /etc/alternatives/cassandrahome/conf:/etc/alternatives/cassandrahome/build/classes/main:/etc/alternatives/cassandrahome/build/classes/thrift:/etc/alternatives/cassandrahome/lib/antlr-3.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.2.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.2.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.2.1.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-fixes.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-sources-fixes.jar:/etc/alternatives/cassandrahome/lib/commons-cli-1.1.jar:/etc/alternatives/cassandrahome/lib/commons-codec-1.2.jar:/etc/alternatives/cassandrahome/lib/commons-lang-2.6.jar:/etc/alternatives/cassandrahome/lib/compress-lzf-0.8.4.jar:/etc/alternatives/cassandrahome/lib/concurrentlinkedhashmap-lru-1.3.jar:/etc/alternatives/cassandrahome/lib/guava-13.0.1.jar:/etc/alternatives/cassandrahome/lib/high-scale-lib-1.1.2.jar:/etc/alternatives/cassandrahome/lib/jackson-core-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jackson-mapper-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar:/etc/alternatives/cassandrahome/lib/jline-1.0.jar:/etc/alternatives/cassandrahome/lib/jna-3.5.1.jar:/etc/alternatives/cassandrahome/lib/json-simple-1.1.jar:/etc/alternatives/cassandrahome/lib/libthrift-0.7.0.jar:/etc/alternatives/cassandrahome/lib/log4j-1.2.16.jar:/etc/alternatives/cassandrahome/lib/metrics-core-2.0.3.jar:/etc/alternatives/cassandrahome/lib/netty-3.5.9.Final.jar:/etc/alternatives/cassandrahome/lib/servlet-api-2.5-20081211.jar:/etc/alternatives/cassandrahome/lib/slf4j-api-1.7.2.jar:/etc/alternatives/cassandrahome/lib/slf4j-log4j12-1.7.2.jar:/etc/alternatives/cassandrahome/lib/snakeyaml-1.6.jar:/etc/alternatives/cassandrahome/lib/snappy-java-1.0.4.1.jar:/etc/alternatives/cassandrahome/lib/snaptree-0.1.jar:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar
>> Killed
>>
>> I move the library back out of the lib directory and cassandra starts
>> again albeit without JNA working quite naturally.
>>
>>
>> Both my cassandra and java installs are tarball installs.
>>
>> Thanks
>> Tim
>>
>>
>> On Mon, Jan 28, 2013 at 6:29 PM, Tim Dunphy <bluethundr@gmail.com> wrote:
>>
>>> Hey List,
>>>
>>>  I just downloaded 1.21 and have set it up across my cluster. When I
>>> noticed the following notice:
>>>
>>>  INFO 18:14:53,828 JNA not found. Native methods will be disabled.
>>>
>>> So I downloaded jna.jar from git hub and moved it to the cassandra /lib
>>> directory. I changed mod to 755 as per the datastax docs. I've also tried
>>> installing the jna package (via yum, I am using centos 6.2). Nothing seems
>>> to do the trick, I keep getting this message. What can I do to get
>>> cassandra 1.2.1 to recognize JNA?
>>>
>>> Thanks
>>> Tim
>>> --
>>> GPG me!!
>>>
>>> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>>>
>>>
>>
>>
>> --
>> GPG me!!
>>
>> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>>
>>
>


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Mime
View raw message