<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: JNA not found with jna.jar in libs directory</title>
		<link>http://www.datastax.com/support-forums/topic/jna-not-found-with-jnajar-in-libs-directory</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 19:31:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/jna-not-found-with-jnajar-in-libs-directory" rel="self" type="application/rss+xml" />

		<item>
			<title>bluethundr on "JNA not found with jna.jar in libs directory"</title>
			<link>http://www.datastax.com/support-forums/topic/jna-not-found-with-jnajar-in-libs-directory#post-9047</link>
			<pubDate>Sat, 16 Feb 2013 20:14:49 +0000</pubDate>
			<dc:creator>bluethundr</dc:creator>
			<guid isPermaLink="false">9047@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Dude. I was having the EXACT same problem you were having. Pulling out my hair over it. This is how I solved it. At the operating system level.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[root@cassandra-node01 cassandrahome]# yum provides &#38;quot;*/jna.jar&#38;quot;

jna-3.2.4-2.el6.x86_64 : Pure Java access to native libraries
Repo        : base
Matched from:
Filename    : /usr/share/java/jna.jar&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;[root@cassandra-node01 cassandrahome]# yum install jna-3.2.4-2.el6.x86_64&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[root@cassandra-node01 cassandrahome]# ln -s /usr/share/java/jna.jar /usr/local/apache-cassandra-1.2.1/lib/jna.jar&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;And now, my friend, life is beautiful! Upon ./bin/cassandra -f&#60;/p&#62;
&#60;p&#62;&#60;code&#62;INFO 15:12:28,609 JNA mlockall successful&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;:)&#60;/p&#62;
&#60;p&#62;I see this is an old thread. Wish I could have been there for you when you were having this problem. If you still haven't figured this out by now I hope this helps you or someone else who needs it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "JNA not found with jna.jar in libs directory"</title>
			<link>http://www.datastax.com/support-forums/topic/jna-not-found-with-jnajar-in-libs-directory#post-2266</link>
			<pubDate>Thu, 21 Jun 2012 09:48:31 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2266@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I just tried creating the /usr/share/java directory and placing jna.jar there, but the same error is still being shown.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "JNA not found with jna.jar in libs directory"</title>
			<link>http://www.datastax.com/support-forums/topic/jna-not-found-with-jnajar-in-libs-directory#post-2258</link>
			<pubDate>Thu, 21 Jun 2012 08:31:55 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2258@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;This comes from Hadoop, not Cassandra, so if you insist on putting it into some DSE libraries, you should put it into hadoop/lib. But, I recommend putting JNA into /usr/share/java, so that all applications can use it. This is also where it gets installed if you install JNA from package.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "JNA not found with jna.jar in libs directory"</title>
			<link>http://www.datastax.com/support-forums/topic/jna-not-found-with-jnajar-in-libs-directory#post-2257</link>
			<pubDate>Thu, 21 Jun 2012 08:25:31 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2257@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Also, here is the output from starting Cassandra:&#60;/p&#62;
&#60;p&#62;INFO 13:51:06,108 JVM vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.6.0_25&#60;br /&#62;
 INFO 13:51:06,109 Heap size: 8342470656/8342470656&#60;br /&#62;
 INFO 13:51:06,109 Classpath: bin/../conf:bin/../build/classes/main:bin/../build/classes/thrift:bin/../lib/antlr-3.2.jar:bin/../lib/apache-cassandra-1.1.0.jar:bin/../lib/apache-cassandra-clientutil-1.1.0.jar:bin/../lib/apache-cassandra-thrift-1.1.0.jar:bin/../lib/avro-1.4.0-fixes.jar:bin/../lib/avro-1.4.0-sources-fixes.jar:bin/../lib/commons-cli-1.1.jar:bin/../lib/commons-codec-1.2.jar:bin/../lib/commons-lang-2.4.jar:bin/../lib/compress-lzf-0.8.4.jar:bin/../lib/concurrentlinkedhashmap-lru-1.2.jar:bin/../lib/guava-r08.jar:bin/../lib/high-scale-lib-1.1.2.jar:bin/../lib/jackson-core-asl-1.9.2.jar:bin/../lib/jackson-mapper-asl-1.9.2.jar:bin/../lib/jamm-0.2.5.jar:bin/../lib/jline-0.9.94.jar:bin/../lib/jna.jar:bin/../lib/json-simple-1.1.jar:bin/../lib/libthrift-0.7.0.jar:bin/../lib/log4j-1.2.16.jar:bin/../lib/metrics-core-2.0.3.jar:bin/../lib/servlet-api-2.5-20081211.jar:bin/../lib/slf4j-api-1.6.1.jar:bin/../lib/slf4j-log4j12-1.6.1.jar:bin/../lib/snakeyaml-1.6.jar:bin/../lib/snappy-java-1.0.4.1.jar:bin/../lib/snaptree-0.1.jar:bin/../lib/jamm-0.2.5.jar&#60;br /&#62;
 INFO 13:51:06,110 JNA not found. Native methods will be disabled.&#60;br /&#62;
 INFO 13:51:06,116 Loading settings from file:/root/dsc-cassandra-1.1.0/conf/cassandra.yaml&#60;br /&#62;
 INFO 13:51:06,191 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap&#60;br /&#62;
 INFO 13:51:06,310 Global memtable threshold is enabled at 2652MB&#60;br /&#62;
 INFO 13:51:06,389 Initializing key cache with capacity of 100 MBs.&#60;br /&#62;
 INFO 13:51:06,396 Scheduling key cache save to each 14400 seconds (going to save all keys).&#60;br /&#62;
 INFO 13:51:06,397 Initializing row cache with capacity of 0 MBs and provider org.apache.cassandra.cache.SerializingCacheProvider&#60;br /&#62;
 INFO 13:51:06,399 Scheduling row cache save to each 0 seconds (going to save all keys).&#60;br /&#62;
 INFO 13:51:06,449 Opening /var/lib/cassandra/data/system/LocationInfo/system-LocationInfo-hc-2 (163 bytes)&#60;br /&#62;
 INFO 13:51:06,449 Opening /var/lib/cassandra/data/system/LocationInfo/system-LocationInfo-hc-1 (234 bytes)&#60;br /&#62;
 INFO 13:51:06,478 Couldn't detect any schema definitions in local storage.&#60;br /&#62;
 INFO 13:51:06,478 Found table data in data directories. Consider using the CLI to define your schema.&#60;br /&#62;
 INFO 13:51:06,490 completed pre-loading (2 keys) key cache.&#60;br /&#62;
 INFO 13:51:06,599 Replaying /var/lib/cassandra/commitlog/CommitLog-432104970661.log, /var/lib/cassandra/commitlog/CommitLog-432001484482.log&#60;br /&#62;
 INFO 13:51:06,600 Replaying /var/lib/cassandra/commitlog/CommitLog-432104970661.log&#60;br /&#62;
 INFO 13:51:06,600 Finished reading /var/lib/cassandra/commitlog/CommitLog-432104970661.log&#60;br /&#62;
 INFO 13:51:06,600 Replaying /var/lib/cassandra/commitlog/CommitLog-432001484482.log&#60;br /&#62;
 INFO 13:51:06,612 Finished reading /var/lib/cassandra/commitlog/CommitLog-432001484482.log&#60;br /&#62;
 INFO 13:51:06,685 Enqueuing flush of Memtable-Versions@1729398275(83/103 serialized/live bytes, 3 ops)&#60;br /&#62;
 INFO 13:51:06,686 Writing Memtable-Versions@1729398275(83/103 serialized/live bytes, 3 ops)&#60;br /&#62;
 INFO 13:51:06,861 Completed flushing /var/lib/cassandra/data/system/Versions/system-Versions-hc-1-Data.db (247 bytes)&#60;br /&#62;
 INFO 13:51:06,867 Log replay complete, 3 replayed mutations&#60;br /&#62;
 INFO 13:51:06,874 Cassandra version: 1.1.0&#60;br /&#62;
 INFO 13:51:06,875 Thrift API version: 19.30.0&#60;br /&#62;
 INFO 13:51:06,877 CQL supported versions: 2.0.0,3.0.0-beta1 (default: 2.0.0)&#60;br /&#62;
 INFO 13:51:06,904 Loading persisted ring state&#60;br /&#62;
 INFO 13:51:06,905 Starting up server gossip&#60;br /&#62;
 INFO 13:51:06,911 Enqueuing flush of Memtable-LocationInfo@413918804(29/36 serialized/live bytes, 1 ops)&#60;br /&#62;
 INFO 13:51:06,911 Writing Memtable-LocationInfo@413918804(29/36 serialized/live bytes, 1 ops)&#60;br /&#62;
 INFO 13:51:07,068 Completed flushing /var/lib/cassandra/data/system/LocationInfo/system-LocationInfo-hc-3-Data.db (80 bytes)&#60;br /&#62;
 INFO 13:51:07,075 Starting Messaging Service on port 7000&#60;br /&#62;
 INFO 13:51:07,079 Using saved token 164986434265921019703539854051593357886&#60;br /&#62;
 INFO 13:51:07,080 Enqueuing flush of Memtable-LocationInfo@1145105632(53/66 serialized/live bytes, 2 ops)&#60;br /&#62;
 INFO 13:51:07,081 Writing Memtable-LocationInfo@1145105632(53/66 serialized/live bytes, 2 ops)&#60;br /&#62;
 INFO 13:51:07,219 Completed flushing /var/lib/cassandra/data/system/LocationInfo/system-LocationInfo-hc-4-Data.db (163 bytes)&#60;br /&#62;
 INFO 13:51:07,220 Node localhost/127.0.0.1 state jump to normal&#60;br /&#62;
 INFO 13:51:07,221 Bootstrap/Replace/Move completed! Now serving reads.&#60;br /&#62;
 INFO 13:51:07,222 Will not load MX4J, mx4j-tools.jar is not in the classpath
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "JNA not found with jna.jar in libs directory"</title>
			<link>http://www.datastax.com/support-forums/topic/jna-not-found-with-jnajar-in-libs-directory#post-2256</link>
			<pubDate>Thu, 21 Jun 2012 08:24:54 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2256@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I'm having some difficulty with a tarball install on a CentOS 6.2 minimal system.  After placing jna.jar in the cassandra's lib directory, I'm receiving the following error:&#60;/p&#62;
&#60;p&#62;   JNA not found. Native methods will be disabled.&#60;/p&#62;
&#60;p&#62;I'm starting with a completely fresh OS minimal install. For the sake of completeness I'll show here all the commands I use to install (note that java install is not shown).&#60;/p&#62;
&#60;p&#62;Thank you,&#60;br /&#62;
Daniel&#60;/p&#62;
&#60;p&#62;-------- INSTALL ------------------&#60;br /&#62;
# Install DataStax and OPSCenter&#60;br /&#62;
curl -OL &#60;a href=&#34;http://downloads.datastax.com/community/dsc.tar.gz&#34; rel=&#34;nofollow&#34;&#62;http://downloads.datastax.com/community/dsc.tar.gz&#60;/a&#62;&#60;br /&#62;
curl -OL &#60;a href=&#34;http://downloads.datastax.com/community/opscenter.tar.gz&#34; rel=&#34;nofollow&#34;&#62;http://downloads.datastax.com/community/opscenter.tar.gz&#60;/a&#62;&#60;br /&#62;
tar -xzvf dsc.tar.gz&#60;br /&#62;
tar -xzvf opscenter.tar.gz&#60;/p&#62;
&#60;p&#62;# jna&#60;br /&#62;
cd ~/dsc-cassandra-1.1.0/lib&#60;br /&#62;
wget &#60;a href=&#34;https://github.com/twall/jna/blob/3.4.1/dist/jna.jar&#34; rel=&#34;nofollow&#34;&#62;https://github.com/twall/jna/blob/3.4.1/dist/jna.jar&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;nano /etc/security/limits.conf&#60;br /&#62;
###&#60;br /&#62;
cassandra soft memlock unlimited&#60;br /&#62;
cassandra hard memlock unlimited&#60;br /&#62;
root soft memlock unlimited&#60;br /&#62;
root hard memlock unlimited&#60;br /&#62;
###&#60;/p&#62;
&#60;p&#62;# start cassandra&#60;br /&#62;
cd ~/dsc-cassandra-1.1.0&#60;br /&#62;
bin/cassandra
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
