Rahul Patel
Rahul Patel

Reputation: 87

Cassandra 1.0.6 on adding the new node to current single node cluster

We have cassandra 1.0.6 with single node cluster, what are the steps need to be considered while adding new node of same cassandra version.

Any we need to add the second node without restarting the current 1st node.

Upvotes: 1

Views: 108

Answers (1)

r005t3r
r005t3r

Reputation: 368

The following step should be sufficient for your case.

node0 : old node

node1 : new node

  1. Install Cassandra on nodes1 (version 1.0.6 in your case)
  2. Change these properties in cassandra.yaml file
    • cluster_name : same as in node0
    • listen_address : ip of node1
    • rpc_address : ip of node1
    • seeds : ip of the node0
    • endpoint_snitch : change this to GossipingPropertyFileSnitch in both nodes
  3. Ensure that both node's cassandra-rackdc.properties files have same dc values.
  4. Now start your node1 normally.

The node1 will add itself to the datacenter of node0 and fetch the data its been assigned to have.

If this does not work go through this link : Adding nodes to an existing cluster. Would help.

Upvotes: 1

Related Questions