Database Reference
In-Depth Information
Installing Cassandra data centers
The following are a set of steps to set up Cassandra data centers:
1. Let's start with an assumption that we have already installed Cassandra on the fol-
lowing nodes:
10.188.66.41 (seed1)
10.196.43.66
10.188.247.41
10.196.170.59 (seed2)
10.189.61.170
10.189.30.138
2. Assign tokens using the token generation Python script defined in the previous sec-
tion to each of the preceding nodes.
3. Let's say we align to the following distribution of nodes and their tokens across the
data centers:
Node
IP Address
Token
Data Center
node0 10.188.66.41 0
Dc1
node1 10.196.43.66 56713727820156410577229101238628035245 Dc1
node2 10.188.247.41 113427455640312821154458202477256070488 Dc1
node3 10.196.170.59 10
Dc2
node4 10.189.61.170 56713727820156410577229101238628035255 Dc2
node5 10.189.30.138 113427455640312821154458202477256070498 Dc2
4. Stop Cassandra on the nodes and clear the data from data_dir of Cassandra:
$ ps auwx | grep cassandra
Search WWH ::




Custom Search