Cassandra failing to start

42 views
Skip to first unread message

Prashant Hegde

unread,
May 31, 2018, 7:20:50 AM5/31/18
to appscale_...@googlegroups.com
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







Graziano Obertelli

unread,
May 31, 2018, 4:57:50 PM5/31/18
to appscale_...@googlegroups.com
Hello Prashant,

do you have the latest version of AppScale? 3.5.1 was required for an
issue to start Cassandra on the latest updates on Ubuntu, and now we
also have a 3.5.2 out that fixes a possible race condition. Can you
confirm if you have at least 3.5.1?

thanks
graziano
--
You received this message because you are subscribed to the Google
Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to appscale_commun...@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.co
m.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.
--
Graziano Obertelli | SVP, Operations
805.570.1647 graz...@appscale.com
www.appscale.com
Reply all
Reply to author
Forward
0 new messages