Hi Team,
In one of our test servers, cassandra is refusing to start.
In the controller.log, we see several exceptions (details below), during one of the starting attempts
==== example of one excpetion ( several similar exceptions repeated in the log)===
java.lang.ClassCastException: org.apache.cassandra.dht.LocalPartitioner$LocalToken cannot be cast to org.apache.cassandra.dht.ByteOrderedPartitioner$BytesToken
at org.apache.cassandra.dht.ByteOrderedPartitioner$BytesToken.compareTo(ByteOrderedPartitioner.java:80)
at org.apache.cassandra.dht.ByteOrderedPartitioner$BytesToken.compareTo(ByteOrderedPartitioner.java:56)
at org.apache.cassandra.dht.Token$KeyBound.compareTo(Token.java:166)
at org.apache.cassandra.dht.Token$KeyBound.compareTo(Token.java:145)
at org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:93)
at org.apache.cassandra.io.sstable.IndexSummary.binarySearch(IndexSummary.java:122)
at org.apache.cassandra.io.sstable.format.SSTableReader.getSampleIndexesForRanges(SSTableReader.java:1371)
at org.apache.cassandra.io.sstable.format.SSTableReader.getKeySamples(SSTableReader.java:1405)
at org.apache.cassandra.db.ColumnFamilyStore.keySamples(ColumnFamilyStore.java:2117)
at org.apache.cassandra.service.StorageService.keySamples(StorageService.java:3912)
at org.apache.cassandra.service.StorageService.getSplits(StorageService.java:3868)
at org.apache.cassandra.dht.ByteOrderedPartitioner.describeOwnership(ByteOrderedPartitioner.java:295)
at org.apache.cassandra.service.StorageService.effectiveOwnership(StorageService.java:4779)
at org.apache.cassandra.service.StorageService.effectiveOwnership(StorageService.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
====
Interestingly, this exception was encountered in one of the "appscale up" attempts. After this, we have tried several failed attempts. In all such attempts, controller.log, is stuck at "Waiting for Cassandra to start"
When we searched on the web for this exception, we came across this issue reported by Chris.
However, no resolutions mentioned.
Any idea how to solve this issue?
Thank you.
Prashant