Hi folks,
Not really an expert in the troubleshooting nodes I ask here for wider audience and support.
Nigel: I've made a mistake in configuring node 3 while doing DS201. I failed to give it the right rack (hakuna-matata) and data center (west-side).
So it's causing all kinds of problems in downstream exercises. So I tried to fix it by changing the data center parameters, but on trying to start it:
- It said it couldn't start the node with a new data center name that didn't match the old one (cassandra).
- It said I must decommission and re-bootstrap this node.
So I've been trying for ages to accomplish that, but have just been getting myself further and further down the rabbit-hole, and succeeded only in removing a node I wanted to keep - whatever I try, the wrong one, call it node 3 or whatever, is still there.
You can see below, the output from what I've been trying.
What is the correct way to decommission, destroy and remove the node at 127.0.0.3?
ubuntu@ds201-node1:~/node3/bin$ nodetool status Datacenter: Cassandra ===================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack DN 127.0.0.3 315.47 KiB 128 ? b84ac6a8-2895-4f2e-bfc8-8478df2bcebc rack1 Datacenter: east-side ===================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 127.0.0.2 276.34 KiB 128 ? 99ec4273-7960-40fe-ae3a-574c9981138f hakuna-matata Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless
ubuntu@ds201-node1:~/node3/bin$ nodetool decommission -f nodetool: Unsupported operation: local node is not a member of the token ring yet See 'nodetool help' or 'nodetool help <command>'. [...]
ubuntu@ds201-node1:~/node3/bin$ nodetool decommission -h 127.0.0.3 nodetool: Found unexpected parameters: [-h, 127.0.0.3] [...]
ubuntu@ds201-node1:~/node1/bin$ nodetool decommission -f nodetool: Unsupported operation: local node is not a member of the token ring yet See 'nodetool help' or 'nodetool help <command>'. [...]
ubuntu@ds201-node1:~/node1/bin$ nodetool -h 127.0.0.3 decommission nodetool: Unsupported operation: local node is not a member of the token ring yet [...]
ubuntu@ds201-node1:~/node1/bin$ nodetool -h 127.0.0.3 removenode nodetool: Required parameters are missing: remove_operation See 'nodetool help' or 'nodetool help <command>'. [...]
ubuntu@ds201-node1:~/node1/bin$ nodetool -h 127.0.0.3 removenode force RemovalStatus: No token removals in process. [...] ubuntu@ds201-node1:~/node1/bin$ nodetool -h 127.0.0.3 removenode 3 nodetool: Invalid UUID string: 3 [...]
Looking at documentation https://docs.datastax.com/en/dse/6.0/dse-dev/datastax_enterprise/tools/nodetool/toolsDecommission.html i would have think the good syntax is indeed.
nodetool -h 127.0.0.3 decommission
Now as the error is `local node is not a member of the token` i would have wait or force node to join ? try nodetool rebuild?
nodetool rebuild
Let's chat here how to help