I got this error, what are the step I need to resolve this issue:
2012-04-11 14:52:56,974 ERROR [Thread-2] host=localhost, jmxServiceURL=, jmxport=7199, jvmDescription=cassandra, processID=0,systemErrorMessage="Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]"
2012-04-11 17:27:21,466 ERROR [Thread-2] host=localhost, jmxServiceURL=, jmxport=7199, jvmDescription=cassandra, processID=0,systemErrorMessage="Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]"
First of all , have you followed the configuration instructions in the documentation ? There is a README and a PDF user guide.
Based on the above messages(it looks like you haven't configured your config.xml file and are just using the shipped example settings) :
1) Is the JMX remote connector enabled on your target JVM ?
2) Have you setup your config.xml file correctly (host, jmxport, optionally the jmxuser/jmxpass)