Database Reference
In-Depth Information
This command finds the Cassandra Java process ID (PID):
$ sudo kill <pid>
This is the command to kill the process with the specified PID:
$ sudo rm -rf /var/lib/cassandra/*
The preceding command clears the data from the default directories of Cassandra.
5. Modify the following property settings in the cassandra.yaml file for each
node:
endpoint_snitch <provide the name of snitch>
initial_token: <provide the value of token from
previous step>
seeds: <provide internal IP_address of each seed
node>
listen_address: <provide localhost IP address>
Here is what the updated configuration will look like:
node0:
end_point_snitch:
org.apache.cassandra.locator.PropertyFileSnitch
initial_token: 0
seed_provider:
- class_name:
org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "10.188.66.41,10.196.170.59"
listen_address: 10.196.43.66
node1 to node5
All the properties for these nodes are the same as those defined for the preceding
node0 except for the initial_token and listen_address properties.
6. Next, we will have to assign names to each data center and their racks; for ex-
ample, Dc1 , Dc2 and Rc1 , Rc2 .
7. Go to the cassandra-topology.properties file and add an assignment
for data center and rack names against the IP addresses of each node. For ex-
ample:
Search WWH ::




Custom Search