[ https://issues.apache.org/jira/browse/CASSANDRA-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081011#comment-13081011 ]
Vijay commented on CASSANDRA-3000: ---------------------------------- Does it mean that I do not need to configure listen address at all in cassandra.yaml and it will automatically be set? Yes. And the private and public ip's are quried @ amazon. broadcast ip will be set to public ip and the private ip will be used for inter node communication within the region. (https://issues.apache.org/jira/browse/CASSANDRA-2452) I couldn't reproduce this issue, do you have an existing cluster which you are trying to update the snitch? > Ec2MultiRegionSnitch throws AssertionError on EC2 > ------------------------------------------------- > > Key: CASSANDRA-3000 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3000 > Project: Cassandra > Issue Type: Bug > Affects Versions: 0.8.2 > Environment: build version: apache-cassandra-2011-08-07_02-23-42 > OS: Ubuntu 10.04.2 LTS \n \l > # 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 > Reporter: Gourav Shah > Assignee: Vijay > Labels: ec2multiregionsnitch, ec2snithc,, snithc, > > 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) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira