You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2010/03/17 06:45:52 UTC

[Cassandra Wiki] Update of "RunningCassandra" by RobertColi

Dear Wiki user,

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

The "RunningCassandra" page has been changed by RobertColi.
The comment on this change is: clear up some confusion regarding listening ports which leads people to try 8080 from the cli client.. thx to irc crew for feedback.
http://wiki.apache.org/cassandra/RunningCassandra?action=diff&rev1=4&rev2=5

--------------------------------------------------

  
  Among other things the defaults include a maxiumum heap size (-Xmx) of 1GB, which you will probably want to increase for production use.
  
- It also tells the JVM to listen for a remote debugger on port 8888, and for JMX on port 8080.
+ It also tells the JVM to listen for a remote debugger on port 8888, and exposes the JmxInterface on port 8080. The thrift service (which clients connect to) is started by default on port 9160.
  
+ To connect to a default server running on localhost via the command line client :
+ {{{
+ cassandra-cli -host localhost -port 9160
+ }}}
+ 
- If you run into issues connecting via jconsole to the JMX port from a remote machine, it may be the JVM option '-Djava.rmi.server.hostname'.  This may need to be set to a particular interface like '-Djava.rmi.server.hostname=$IP' (where $IP is the ip address of the interface you can reach from the remote machine).  Java defaults to the ip address of "localhost" which is mostly likely not what you want.
+ If you run into issues connecting via jconsole to the JmxInterface port from a remote machine, it may be the JVM option '-Djava.rmi.server.hostname'.  This may need to be set to a particular interface like '-Djava.rmi.server.hostname=$IP' (where $IP is the ip address of the interface you can reach from the remote machine).  Java defaults to the ip address of "localhost" which is mostly likely not what you want.
  
  You can override the options script to use with CASSANDRA_INCLUDE.  E.g.,