我正在安装Cassandra。 Server CentOS版本6.4。 我关注了datastax网站http://docs.datastax.com/en/cassandra/3.0/cassandra/install/installRHEL.html 服务cassandra启动时没有错误,但是当我上传命令nodetool status
时我遇到了这个错误:
Error: The node does not have system_traces yet, probably still bootstrapping
对于cqlsh:
Connection error: {'127.0.0.1': error (111, "Tried connecting to [('127.0.0.1', 9042)] Last error: Connection refused"
这是cassandra日志中的错误:
ERROR [MemtableFlushWriter: 1] 2017-02-09 08: 21: 10,592 CassandraDaemon.java:205 - Exception in thread Thread [MemtableFlushWriter: 1,5, hand]
Java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
At org.apache.cassandra.utils.memory.MemoryUtil.allocate (MemoryUtil.java:97) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.util.Memory. <Init> (Memory.java:74) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.util.SafeMemory. <Init> (SafeMemory.java:32) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.compress.CompressionMetadata $ Writer. <Init> (CompressionMetadata.java:316) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.compress.CompressionMetadata $ Writer.open (CompressionMetadata.java:330) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.compress.CompressedSequentialWriter. <Init> (CompressedSequentialWriter.java:76) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.util.SequentialWriter.open (SequentialWriter.java:163) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.sstable.format.big.BigTableWriter. <Init> (BigTableWriter.java:73) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.sstable.format.big.BigFormat $ WriterFactory.open (BigFormat.java:93) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.sstable.format.SSTableWriter.create (SSTableWriter.java:96) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.io.sstable.SimpleSSTableMultiWriter.create (SimpleSSTableMultiWriter.java:114) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.db.compaction.AbstractCompactionStrategy.createSSTableMultiWriter (AbstractCompactionStrategy.java:519) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.db.compaction.CompactionStrategyManager.createSSTableMultiWriter (CompactionStrategyManager.java:497) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.db.ColumnFamilyStore.createSSTableMultiWriter (ColumnFamilyStore.java:480) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.db.Memtable.createFlushWriter (Memtable.java:439) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.db.Memtable.writeSortedContents (Memtable.java:371) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.db.Memtable.flush (Memtable.java:332) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At org.apache.cassandra.db.ColumnFamilyStore $ Flush.run (ColumnFamilyStore.java:1054) ~ [apache-cassandra-3.0.9.jar: 3.0.9]
At java.util.concurrent.ThreadPoolExecutor.runWorker {ThreadPoolExecutor.java:1142) ~ [na: 1.8.0_121]
At java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:617) ~ [na: 1.8.0_121]
At java.lang.Thread.run (Thread.java:745) ~ [na: 1.8.0_121]
答案 0 :(得分:0)
请检查cassandra.yaml上的rpc_addres参数,并尝试更改为您的主机IP。