cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain RODRIGUEZ <arodr...@gmail.com>
Subject Re: Any tips on how to track down why Cassandra won't cluster?
Date Thu, 04 Feb 2016 23:37:16 GMT
Hi Richard,

I think you just can't use EC2Snitch with public IPs.

See
https://docs.datastax.com/en/cassandra/2.0/cassandra/architecture/architectureSnitchEC2_t.html

Precisely "Because private IPs are used, this snitch does not work across
multiple regions"

54.*.*.* looks like a public one.

You can stick with the private IPs (with limitation written above, even if
you can workaround with a VPN tunnel across Regions). In this case set
listen address to private IP and comment broadcast_address. You can also
use the EC2MultiRegionSnitch, but then be careful with broadcast_address
(public IP) and listen-address (private IP) configuration on the
cassandra.yaml files and also with ports management on AWS console.

Also, as you nodes already bootstrapped, you might have to clean the
cassandra folder, usually something like rm -rf /var/lib/cassandra/*
*warning: *you will loose all the data, but this "cluster" doesn't look
like a running cluster, only you can know :-).

Any suggestions on how to track down what might trigger this problem


This kind of issue might be due to:

- Different cluster names
- *Bad configuration* (IPs, Snitch + configuration files, ...) <-- probably
your case
- Ports (firewall, AWS rules...) <-- telnet might be useful here
- Seeds being differents on the nodes <-- make sure that your seeds are the
same on every node

Hope this will be enough to get you out of this,

C*heers,
-----------------
Alain Rodriguez
France

The Last Pickle
http://www.thelastpickle.com



2016-02-04 16:35 GMT+00:00 Victor Chen <victor.h.chen@gmail.com>:

> Along the lines of what Ben and Bryan suggested, what are you using to
> verify ports are open? If you do something like:
>
> node1$ nc -zv node2 9042
> node2$ nc -zv node1 9042
>
> does it succeed from both nodes?
> Does the first node 'know' that it is a seed? i.e. do you have first node
> listed in its own seed's list?
> What does the system.log show as both nodes are spun up?
>
>
> On Wed, Feb 3, 2016 at 7:20 PM, Bryan Cheng <bryan@blockcypher.com> wrote:
>
>>
>>
>>
>>> On Wed, 3 Feb 2016 at 11:49 Richard L. Burton III <mrburton@gmail.com>
>>> wrote:
>>>
>>>>
>>>> Any suggestions on how to track down what might trigger this problem?
>>>> I'm not receiving any exceptions.
>>>>
>>>
>> You're not getting "Unable to gossip with any seeds" on the second node?
>> What does nodetool status show on both machines?
>>
>
>

Mime
View raw message