Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-3000

Ec2MultiRegionSnitch throws AssertionError on EC2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • build version: apache-cassandra-2011-08-07_02-23-42

      OS: Ubuntu 10.04.2 LTS \n \l

      1. uname -a
        Linux ip-10-227-143-202 2.6.32-312-ec2 #24-Ubuntu SMP Fri Jan 7 18:30:50 UTC 2011 x86_64 GNU/Linux
    • Normal

    Description

      I found Ec2MultiRegionSnitch patch at https://issues.apache.org/jira/browse/CASSANDRA-2452

      However, I could not find any documentation on how to get it working, which address to use as seed, listen and thrift addresses. I used the following,

      seed_address = Public DNS of the seed node
      listen_address = Public DNS of the cluster node
      rpc_address = 0.0.0.0
      endpoint_snitch: org.apache.cassandra.locator.Ec2MultiRegionSnitch

      When I try to start cassandra, I get the following error:

      INFO 14:44:19,822 Ec2Snitch adding ApplicationState ec2region=eu-west ec2zone=1c
      INFO 14:44:19,831 Starting Messaging Service on ec2-46-137-139-124.eu-west-1.compute.amazonaws.com/10.227.143.202:7000
      INFO 14:44:19,851 Using saved token 162732122844140653649170199706439942449
      INFO 14:44:19,852 Enqueuing flush of Memtable-LocationInfo@550579946(53/66 serialized/live bytes, 2 ops)
      INFO 14:44:19,852 Writing Memtable-LocationInfo@550579946(53/66 serialized/live bytes, 2 ops)
      INFO 14:44:19,908 Completed flushing /var/lib/cassandra/data/system/LocationInfo-h-20-Data.db (163 bytes)
      INFO 14:44:19,913 Compacting Major: [SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-h-20-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-h-19-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-h-17-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/LocationInfo-h-18-Data.db')]
      ERROR 14:44:19,922 Exception encountered during startup.
      java.lang.AssertionError
      at org.apache.cassandra.gms.Gossiper.compareEndpointStartup(Gossiper.java:620)
      at org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:803)
      at org.apache.cassandra.service.StorageService.onChange(StorageService.java:706)
      at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:839)
      at org.apache.cassandra.gms.Gossiper.addLocalApplicationState(Gossiper.java:986)
      at org.apache.cassandra.service.StorageService.setToken(StorageService.java:219)
      at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:520)
      at org.apache.cassandra.service.StorageService.initServer(StorageService.java:434)
      at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:213)
      at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:335)
      at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:91)
      Exception encountered during startup.
      java.lang.AssertionError
      at org.apache.cassandra.gms.Gossiper.compareEndpointStartup(Gossiper.java:620)
      at org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:803)
      at org.apache.cassandra.service.StorageService.onChange(StorageService.java:706)
      at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:839)
      at org.apache.cassandra.gms.Gossiper.addLocalApplicationState(Gossiper.java:986)
      at org.apache.cassandra.service.StorageService.setToken(StorageService.java:219)
      at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:520)
      at org.apache.cassandra.service.StorageService.initServer(StorageService.java:434)
      at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:213)
      at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:335)
      at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:91)

      Attachments

        Activity

          People

            vijay2win@yahoo.com Vijay
            initcron Gourav Shah
            Vijay
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: