We are running apache-cassandra-2.2.6 for months with no JNA startup issues. Recently, we have updated some of our cassandra machines and we ran into a Cassandra startup issue with JNA. See the stack trace 1 below.
Question 1: Our Cassandra package contains jna-4.0.0.jar in the /usr/share/cassandra/lib/ directory. Does apache-cassandra-2.2.6 specifically package A-C* with the jna-4.0.0.jar ? I tried to circumvent the exception by yum installing jna-3.2.4.jar for RHEL 6.4 and adding it to the /usr/share/cassandra/lib/ directory. This got me past the JNA mlockall failure with "INFO 16:56:47 JNA mlockall successful" but when the MemtableFlushWriter requested memory allocation, I now get the STACK TRACE 2 error. "nodetool status" still reports the node as incomplete. Any Suggestions? Thank you STACK TRACE 1: ERROR [MemtableFlushWriter:1] 2017-07-17 22:33:13,376 CassandraDaemon.java:185 - Exception in thread Thread[MemtableFlushWriter:1,5,main] java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native at org.apache.cassandra.utils.memory.MemoryUtil.allocate(MemoryUtil.java:82) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.util.Memory.<init>(Memory.java:74) ~[apache-cassandra-clientutil-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.util.SafeMemory.<init>(SafeMemory.java:32) ~[apache-cassandra-clientutil-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.compress.CompressionMetadata$Writer.<init>(CompressionMetadata.java:304) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.compress.CompressionMetadata$Writer.open(CompressionMetadata.java:318) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.compress.CompressedSequentialWriter.<init>(CompressedSequentialWriter.java:73) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:168) ~[apache-cassandra-clientutil-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.sstable.format.big.BigTableWriter.<init>(BigTableWriter.java:75) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.sstable.format.big.BigFormat$WriterFactory.open(BigFormat.java:107) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.sstable.format.SSTableWriter.create(SSTableWriter.java:84) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.db.Memtable$FlushRunnable.createFlushWriter(Memtable.java:433) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.db.Memtable$FlushRunnable.writeSortedContents(Memtable.java:376) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.db.Memtable$FlushRunnable.runMayThrow(Memtable.java:361) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297) ~[guava-16.0.jar:na] at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1146) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_141] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_141] at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_141] STACK TRACE 2: ERROR 16:56:51 Exception in thread Thread[MemtableFlushWriter:1,5,main] java.lang.NoSuchMethodError: com.sun.jna.Native.malloc(J)J at org.apache.cassandra.utils.memory.MemoryUtil.allocate(MemoryUtil.java:82) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.util.Memory.<init>(Memory.java:74) ~[apache-cassandra-clientutil-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.util.SafeMemory.<init>(SafeMemory.java:32) ~[apache-cassandra-clientutil-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.compress.CompressionMetadata$Writer.<init>(CompressionMetadata.java:304) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.compress.CompressionMetadata$Writer.open(CompressionMetadata.java:318) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.compress.CompressedSequentialWriter.<init>(CompressedSequentialWriter.java:73) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:168) ~[apache-cassandra-clientutil-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.sstable.format.big.BigTableWriter.<init>(BigTableWriter.java:75) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.sstable.format.big.BigFormat$WriterFactory.open(BigFormat.java:107) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.io.sstable.format.SSTableWriter.create(SSTableWriter.java:84) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.db.Memtable$FlushRunnable.createFlushWriter(Memtable.java:433) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.db.Memtable$FlushRunnable.writeSortedContents(Memtable.java:376) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.db.Memtable$FlushRunnable.runMayThrow(Memtable.java:361) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297) ~[guava-16.0.jar:na] at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1146) ~[apache-cassandra-2.2.6-E002.jar:2.2.6-E002] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_141] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_141] at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_141] [Ericsson]<http://www.ericsson.com/> WILLIAM L. BOUTIN Engineer IV - Sftwr BMDA PADB DSE DU CC NGEE Ericsson 1 Ericsson Drive, US PI06 1.S747 Piscataway, NJ, 08854, USA Phone (913) 241-5574 Mobile (732) 213-1368 Emergency (732) 354-1263 william.bou...@ericsson.com www.ericsson.com [http://www.ericsson.com/current_campaign]<http://www.ericsson.com/current_campaign> Legal entity: EUS - ERICSSON INC., registered office in US PI01 4A242. This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer<http://www.ericsson.com/email_disclaimer>