cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roshni Rajagopal <>
Subject Re: Unsuccessful attempt to add a second node to a ring.
Date Wed, 01 Aug 2012 09:29:39 GMT

Have you set the
Data, commitlog, saved cache directories to different ones in each yaml file for each node?


From: Jakub Glapa <<>>
Reply-To: "<>" <<>>
To: "<>" <<>>
Subject: Unsuccessful attempt to add a second node to a ring.

Hi Everybody!

I'm trying to add a second node to an already operating one node cluster.

Some specs:
- cassandra 1.0.7
- both nodes have a routable listen_address and rpc_address.
- Ports are open: (from node2) telnet node1 7000 is successful
- Seeds parameter on node2 points to node 1.

[node1] nodetool -h localhost ring
Address         DC          Rack        Status State   Load            Owns    Token
node1.ip     datacenter1 rack1       Up     Normal  74.33 KB        100.00% 0

- initial token on node2 was specified

I see something like that in the logs on node2:

DEBUG [main] 2012-07-31 13:50:38,640 (line 76) collectTimeOrderedData
 INFO [main] 2012-07-31 13:50:38,641 (line 667) JOINING: waiting for ring
and schema information
DEBUG [WRITE-NODE1/node1.ip] 2012-07-31 13:50:39,642 (line 206)
attempting to connect to NODE1/node1.ip
DEBUG [ScheduledTasks:1] 2012-07-31 13:50:40,639 (line 86) Disseminating
load info ...
 INFO [main] 2012-07-31 13:51:08,641 (line 667) JOINING: schema complete,
ready to bootstrap
DEBUG [main] 2012-07-31 13:51:08,642 (line 554) ... got ring + schema
 INFO [main] 2012-07-31 13:51:08,642 (line 667) JOINING: getting bootstrap
DEBUG [main] 2012-07-31 13:51:08,644 (line 138) token manually specified
as 85070591730234615865843651857942052864
DEBUG [main] 2012-07-31 13:51:08,645 (line 387) applying mutation of row 4c

but it doesn't join the ring:

[node2] nodetool -h localhost ring
Address         DC          Rack        Status State   Load            Owns    Token
node2.ip   datacenter1 rack1       Up     Normal  13.49 KB        100.00% 85070591730234615865843651857942052864

I'm attaching the full log from node2 startup in debug mode.

When I didn't specified the initial token on node2 I ended up with exception like that:
"Exception encountered during startup: No other nodes seen!  Unable to bootstrap.If you intended
to start a single-node cluster, you should make sure your broadcast_address (or listen_address)
is listed as a seed.
Otherwise, you need to determine why the seed being contacted has no knowledge of the rest
of the cluster.  Usually, this can be solved by giving all nodes the same seed list."

I'm not sure how to proceed now. I found a couple of posts with problems like that but they
weren't very useful.

Jakub Glapa

This email and any files transmitted with it are confidential and intended solely for the
individual or entity to whom they are addressed. If you have received this email in error
destroy it immediately. *** Walmart Confidential ***

View raw message