cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate McCall <>
Subject Re: nodetool -h <hostname or ip> fails Connection refused
Date Wed, 20 Apr 2016 15:05:39 GMT
You need to set LOCAL_JMX=false

It will then read the rest of this stanza:

Using the defaults above as-is, you will need to add JMX authentication.
Details are here:

A lot of this can be controlled with system properties as well:

The default config files for JMX authentication and access included in the
JVM also have extensive details in the comments:

On Tue, Apr 19, 2016 at 8:40 PM, Alaa Zubaidi (PDF) <>

> Hi,
> I am trying to run nodetool remotely. but its not working:
> I am running Cassandra 2.2.5 on CentOS 6.
> listen_address: is set to <host IP>
> rpc_address: is set to
> broadcast_rpc_address: is set to <host IP>
> I changed the following in
> JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<hostname>"
> "nodetool -h <hostname or ip> -p <port> status" results in:
> failed to connect to 'hostname' - Connection Exception: 'Connection
> refused"
> netstat -nl | grep 7199
> tcp    0    0*    LISTEN
> ONLY "nodetool -h localhost" works
> Any idea how to fix it?
> Thanks,
> Alaa
> *This message may contain confidential and privileged information. If it
> has been sent to you in error, please reply to advise the sender of the
> error and then immediately permanently delete it and all attachments to it
> from your systems. If you are not the intended recipient, do not read,
> copy, disclose or otherwise use this message or any attachments to it. The
> sender disclaims any liability for such unauthorized use. PLEASE NOTE that
> all incoming e-mails sent to PDF e-mail accounts will be archived and may
> be scanned by us and/or by external service providers to detect and prevent
> threats to our systems, investigate illegal or inappropriate behavior,
> and/or eliminate unsolicited promotional e-mails (“spam”). If you have any
> concerns about this process, please contact us at *
> ** <>*.*

Nate McCall
Austin, TX

Co-Founder & Sr. Technical Consultant
Apache Cassandra Consulting

View raw message