Ring
ℹ️ For technical support, please contact us via email.
Edit cassandra.yaml and set the token range
In this exercise there is a two-node Cassandra cluster. The root directories for the nodes are: ./node1
and ./node2
. You are going to edit the configuration file (cassandra.yaml
) for node2. You are going to assign an initial_token
value of -9223372036854775808
✅ Open /workspace/ds201-lab07/node2/conf/cassandra.yaml
in a nano or the text editor of your choice.
nano /workspace/ds201-lab07/node2/conf/cassandra.yaml
In the file find:
# initial_token:
Un-comment and change initial_token
value setting it to -9223372036854775808
. This will allow node2 to manage half of the token range – all of the positive tokens and one negative token of -9223372036854775808
The new entry should look like:
initial_token: -9223372036854775808
Save and exit the editor.