Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for 
change notification.

The "FAQ" page has been changed by TylerHobbs:
http://wiki.apache.org/cassandra/FAQ?action=diff&rev1=157&rev2=158

Comment:
RMI hostname can be configured through cassandra-env.sh

  <<Anchor(jmx_localhost_refused)>>
  
  == Nodetool says "Connection refused to host: 127.0.1.1" for any remote host. 
What gives? ==
- Nodetool relies on JMX, which in turn relies on RMI, which in turn sets up 
it's own listeners and connectors as needed on each end of the exchange. 
Normally all of this happens behind the scenes transparently, but incorrect 
name resolution for either the host connecting, or the one being connected to, 
can result in crossed wires and confusing exceptions.
+ Nodetool relies on JMX, which in turn relies on RMI, which in turn sets up 
its own listeners and connectors as needed on each end of the exchange. 
Normally all of this happens behind the scenes transparently, but incorrect 
name resolution for either the host connecting, or the one being connected to, 
can result in crossed wires and confusing exceptions.
  
- If you are not using DNS, then make sure that your `/etc/hosts` files are 
accurate on both ends. If that fails try passing the 
`-Djava.rmi.server.hostname=$IP` option to the JVM at startup (where `$IP` is 
the address of the interface you can reach from the remote machine).
+ If you are not using DNS, then make sure that your `/etc/hosts` files are 
accurate on both ends. If that fails, try setting the 
`-Djava.rmi.server.hostname=<public name>` JVM option near the bottom of 
`cassandra-env.sh` to an interface that you can reach from the remote machine.
  
  <<Anchor(iter_world)>>
  

Reply via email to