based on your mount/selinux settings sometimes the os is unwilling to
tolerate so files outside certain directories.

Edward

On Tue, Feb 19, 2013 at 10:13 AM, Tim Dunphy <bluethu...@gmail.com> wrote:
> Hey Guys,
>
>  I just wanted to follow up on this thread on how I go JNA to work with the
> cassandra 1.2.1 tarball I downloaded.
>
> On CentOS I went :
>
> [root@cassandra-node01 ~]# yum provides "*/jna.jar"
>
> .......................
>
> jna-3.4.0-4.el5.x86_64 : Pure Java access to native libraries
> Repo        : epel
> Matched from:
> Filename    : /usr/share/java/jna.jar
>
>
> [root@cassandra-node01 ~]#  yum install jna-3.4.0-4.el5.x86_64
>
> [root@cassandra-node01 ~]# ln -s /usr/share/java/jna.jar
> /usr/local/apache-cassandra-1.2.1/lib/jna.jar
>
>
> Now when I start Cassandra I see this message:
>
> INFO 10:11:11,852 JNA mlockall successful
>
>
> That's a win! Can't for the life of me figure out why Cassandra 1.2 was
> refusing to recognize the downloaded jna.jar file in it's lib directory. But
> the above trick seems to work every time.
>
> Thanks for all your input.
>
> Tim
>
>
>
>
>
>
>
> On Tue, Jan 29, 2013 at 10:18 PM, Tim Dunphy <bluethu...@gmail.com> wrote:
>>
>> Hi Chandra,
>>
>>  I'm using Cassandra 1.2.1 and jna/platform 3.5.1.
>>
>>  One thing I should mention is that I tried putting the jar files into my
>> java jre/lib directory. The theory being those jars would be available to
>> all java apps. In that case Cassandra will start but still not recognize
>> JNA. If I copy the jars to the cassandra/lib directory, I have the same
>> crashing issue. Even if I symlink from the jre/lib directory to the
>> cassandra/lib directory the same issue occurs. It's like this version of
>> Cassandra can't stand having the jna jar in it's lib directory. I'm
>> beginning to wonder if if anyone has gotten JNA to work with this version of
>> cassandra and if so how. I've only tried a tarball install so far, I can't
>> say about the package install which may well work.
>>
>> Thanks
>> Tim
>>
>>
>> On Tue, Jan 29, 2013 at 10:07 PM, chandra Varahala
>> <hadoopandcassan...@gmail.com> wrote:
>>>
>>> we had this issue before, but after adding those two jar the  error gone.
>>> We used 1.0.8 cassandra (JNA 3.3.0, JNA platform. 3.3.0).  what version
>>> cassnadra  you are using ?
>>>
>>> -chandra
>>>
>>>
>>> On Tue, Jan 29, 2013 at 12:19 PM, Tim Dunphy <bluethu...@gmail.com>
>>> wrote:
>>>>
>>>> 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
>>>> <hadoopandcassan...@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 <bluethu...@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 <bluethu...@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
>>>>
>>>
>>
>>
>>
>> --
>> GPG me!!
>>
>> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>>
>
>
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>

Reply via email to