Hi AJ,

I'd suggest getting to a multi-region cluster step-by-step.  First, get 2
nodes running in the same availability zone.  Make sure that works properly.
 Second, add a node in a separate availability zone, but in the same region.
 Make sure that's working properly.  Third, add a node that's in a separate
region.

Taking it step-by-step will ensure that any issues are specific to the
region-to-region communication, rather than intra-zone connectivity or
cassandra cluster configuration.

Dave Viner


On Fri, Mar 18, 2011 at 8:34 AM, A J <s5a...@gmail.com> wrote:

> Hello,
>
> I am trying to setup a cassandra cluster across regions.
> For testing I am keeping it simple and just having one node in US-EAST
> (say ec2-1-2-3-4.compute-1.amazonaws.com) and one node in US-WEST (say
> ec2-2-2-3-4.us-west-1.compute.amazonaws.com).
> Using Cassandra 0.7.4
>
>
> The one in east region is the seed node and has the values as:
> auto_bootstrap: false
> seeds: ec2-1-2-3-4.compute-1.amazonaws.com
> listen_address: ec2-1-2-3-4.compute-1.amazonaws.com
> rpc_address: 0.0.0.0
>
> The one in west region is non seed and has the values as:
> auto_bootstrap: true
> seeds: ec2-1-2-3-4.compute-1.amazonaws.com
> listen_address: ec2-2-2-3-4.us-west-1.compute.amazonaws.com
> rpc_address: 0.0.0.0
>
> I first fire the seed node (east region instance) and it comes up
> without issues.
> When I fire the non-seed node (west region instance) it fails after
> sometime with the error:
>
> DEBUG 15:09:08,844 Created HHOM instance, registered MBean.
>  INFO 15:09:08,844 Joining: getting load information
>  INFO 15:09:08,845 Sleeping 90000 ms to wait for load information...
> DEBUG 15:09:09,822 attempting to connect to
> ec2-1-2-3-4.compute-1.amazonaws.com/1.2.3.4
> DEBUG 15:09:10,825 Disseminating load info ...
> DEBUG 15:10:10,826 Disseminating load info ...
> DEBUG 15:10:38,845 ... got load info
>  INFO 15:10:38,845 Joining: getting bootstrap token
> ERROR 15:10:38,847 Exception encountered during startup.
> java.lang.RuntimeException: No other nodes seen!  Unable to bootstrap
>        at
> org.apache.cassandra.dht.BootStrapper.getBootstrapSource(BootStrapper.java:164)
>        at
> org.apache.cassandra.dht.BootStrapper.getBalancedToken(BootStrapper.java:146)
>        at
> org.apache.cassandra.dht.BootStrapper.getBootstrapToken(BootStrapper.java:141)
>        at
> org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:450)
>        at
> org.apache.cassandra.service.StorageService.initServer(StorageService.java:404)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:192)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:314)
>        at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79)
>
>
> The seed node seems to somewhat acknowledge the non-seed node:
> attempting to connect to /2.2.3.4
> attempting to connect to /10.170.190.31
>
> Can you suggest how can I fix it (I did see a few threads on similar
> issue but did not really follow the chain)
>
> Thanks, AJ
>

Reply via email to