部署了cassandra datastax enterprise并获得了java.lang.AssertionError

时间:2014-10-13 06:13:09

标签: deployment cassandra datastax-enterprise

我正在尝试在我的集群上部署cassandra datastax enterprise 4.5.1,而且我总是得到java.lang.AssertionError,日志如下:

 INFO [main] 2014-10-13 06:01:03,142 CLibrary.java (line 63) JNA not found. Native methods will be disabled.
 INFO [main] 2014-10-13 06:01:03,155 CacheService.java (line 105) Initializing key cache with capacity of 100 MBs.
 INFO [main] 2014-10-13 06:01:03,167 CacheService.java (line 117) Scheduling key cache save to each 14400 seconds (going to save all keys).
 INFO [main] 2014-10-13 06:01:03,169 CacheService.java (line 131) Initializing row cache with capacity of 0 MBs
 INFO [main] 2014-10-13 06:01:03,177 CacheService.java (line 141) Scheduling row cache save to each 0 seconds (going to save all keys).
 INFO [main] 2014-10-13 06:01:03,471 ColumnFamilyStore.java (line 249) Initializing system.schema_triggers
 INFO [main] 2014-10-13 06:01:03,522 ColumnFamilyStore.java (line 249) Initializing system.compaction_history
 INFO [SSTableBatchOpen:1] 2014-10-13 06:01:03,547 SSTableReader.java (line 223) Opening /apps/datastax-enterprise/9161/ddata/data/system/compaction_history/system-compaction_history-jb-4349 (163599 bytes)
ERROR [SSTableBatchOpen:1] 2014-10-13 06:01:03,565 SSTableReader.java (line 233) Cannot open /apps/datastax-enterprise/9161/ddata/data/system/compaction_history/system-compaction_history-jb-4349; partitioner org.apache.cassandra.dht.RandomPartitioner does not match system partitioner org.apache.cassandra.dht.Murmur3Partitioner.  Note that the default partitioner starting with Cassandra 1.2 is Murmur3Partitioner, so you will need to edit that to match your old partitioner if upgrading.
 INFO [Thread-1] 2014-10-13 06:01:03,569 DseDaemon.java (line 477) DSE shutting down...
ERROR [Thread-1] 2014-10-13 06:01:03,635 CassandraDaemon.java (line 199) Exception in     thread Thread[Thread-1,5,main]
java.lang.AssertionError
at org.apache.cassandra.gms.Gossiper.addLocalApplicationState(Gossiper.java:1263)
at com.datastax.bdp.gms.DseState.setActiveStatus(DseState.java:171)
at com.datastax.bdp.server.DseDaemon.stop(DseDaemon.java:478)
at com.datastax.bdp.server.DseDaemon$1.run(DseDaemon.java:384)

任何人都知道这个或者可能给我任何信息吗?任何答案将不胜感激

1 个答案:

答案 0 :(得分:0)

问题解决了,正如@RussS所说,这是因为分区器不匹配,我们应该在cassandra.yaml中使用 partitioner:org.apache.cassandra.dht.RandomPartitioner