Cassandra Cluster Setup gets JMX error

I am trying to install a cassandra cluster as a test layer, but gave a remote JMX connection error. I seem to have found the answer to my mistake on the cassandra FAQ page


Nodetool says: "Connection refused the host: 127.0.1.1" for any remote host. What gives?

Nodetool relies on JMX, which in turn relies on RMI, which in turn tunes its own listeners and connectors as needed at each end of the exchange. Usually all this happens behind the curtains transparently, but incorrect name resolution for connecting a host or connected to it can lead to cross-wires and confusing exceptions.

If you are not using DNS, make sure your / etc / hosts files are accurate at both ends. If this fails, try passing the -Djava.rmi.server.hostname = $ IP parameter to the JVM at startup (where $ IP is the interface address that you can get from the remote machine).


But can someone help me on how to do this? Or what to add a hosts file, I know that in hosts we usually add "IP Alias", but whose ip and alias.

I don't know much java or linux

I am currently working on ubuntu v10.04 and cassandra v0.74

Sudesh

+3
source share
1 answer

For JMX, you need to enable JMX remote access:

java -Dcom.sun.management.jmxremote

Depending on where you want to access the jmx server, you also need to specify the port:

-Dcom.sun.management.jmxremote.port=12345

and set or disable passwords.

http://download.oracle.com/javase/1.5.0/docs/guide/management/agent.html .

+2

All Articles