VNodes
ℹ️ For technical support, please contact us via email.
Edit cassandra.yaml to use VNodes
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-lab08/node1/conf/cassandra.yaml
in a nano or the text editor of your choice.
nano /workspace/ds201-lab08/node1/conf/cassandra.yaml
-
Make sure that
intial_token
is commented out: -
Set
num_tokens
to128
num_tokens: 128
...
# initial_token:
Save and exit the editor.
✅ Make the same changes to /workspace/ds201-lab08/node2/conf/cassandra.yaml
nano /workspace/ds201-lab08/node2/conf/cassandra.yaml