cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Tremblay <>
Subject Re: Is there a way to remove a node with Opscenter?
Date Wed, 08 Jul 2015 06:38:19 GMT
When you do a nodetool command and you don’t specify a hostname, it sends the requests via
JMX to the localhost node. If that node is down then the command will not succeed.
In your case you are probably doing the command from a machine which has not cassandra running,
in that case you need to specify a node with the switch -h.

So for your that would be:

nodetool -h <a-node-ip-address> removenode <Host ID>

where <a-node-ip-address> is the address of a server which has cassandra daemon running.



On 08 Jul 2015, at 01:39 , Sid Tantia <<>>

I tried both `nodetool remove node <Host ID>` and `nodetool decommission` and they both
give the error:

nodetool: Failed to connect to '' - ConnectException: 'Connection refused’.

Here is what I have tried to fix this:

1) Uncommented JVM_OPTS=”$JVM_OPTS -Djava.rmi.server.hostname=<public name>”
2) Changed rpc_address to
3) Restarted cassandra
4) Restarted datastax-agent

(Note that I installed my cluster using opscenter so that may have something to do with it?

On Tue, Jul 7, 2015 at 2:08 PM, Surbhi Gupta <<>>

If node is down use :

nodetool removenode <Host ID>

We have to run the below command when the node is down & if the cluster does not use vnodes,
before running the nodetool removenode command, adjust the tokens.

If the node is up, then the command would be “nodetool decommission” to remove the node.

Remove the node from the “seed list” within the configuration cassandra.yaml.

On 7 July 2015 at 12:56, Sid Tantia <<>>
Thanks for the response. I’m trying to remove a node that’s already down for some reason
so its not allowing me to decommission it, is there some other way to do this?

On Tue, Jul 7, 2015 at 12:45 PM, Kiran mk <<>>

Yes, if your intension is to decommission a node.  You can do that by clicking on the node
and decommission.

Best Regards,

On Jul 8, 2015 1:00 AM, "Sid Tantia" <<>>
I know you can use `nodetool removenode` from the command line but is there a way to remove
a node from a cluster using OpsCenter?

View raw message