Tuesday, June 28, 2011

exception connecting to localhost/9160. reason: connection refused

Connection refused to cassandra cli mode . 


goto the root directory of cassandra :


bin/cassandra -- host {host-ip} --port {9160}


if you are having trouble with this , check your {cassandra-root-directory}/conf/cassandra.yaml


the thrift ip or rpc_address is the address used as the host-ip for connecting to cli .
make it your local IP and if you are having trouble connecting using the port 9160 , try changing the rpc_port to 8070 and now try connecting to cassandra-cli mode using the command 


bin/cassandra --host {local-IP} --port 8070




This worked for me, hope it works for you too .
Provide your commments if you find this useful 

2 comments:

  1. Thanks - I tried -h localhost -p 9160 and the connection was refused. -h 192.168.90.196 (the real host IP) and it was happy.

    ReplyDelete
  2. Contact to Cassandra Technical Support to Solve Cassandra Error Message 395 The slip-up 395 demonstrates that "Affiliation Refused" on a very basic level this kind of affiliation denied screw up happens when Kong can't talk with Cassandra. Guarantee, if you didn't present the Cassandra at that point at first acquaint it and utilize kongdb.org with course of action a testing Cassandra event. In any case, in most by far of the cases, we have seen that, resulting to using the kongdb from kongdb.org, customers standing up to a comparable issue. Everything considered, we recommend them to pick exceedingly capable help to decide this kind of issue. We supposing hopefully and world-class reinforce concerning Cassandra Support, our Cassandra Database Support, and Apache Cassandra Support can without quite a bit of a stretch fix your hiccups and influence you to bumble free. For More Info: https://cognegicsystems.com/ Contact Number: 1-800-450-8670 Email Address- info@cognegicsystems.com Company’s Address- 507 Copper Square Drive Bethel Connecticut (USA) 06801

    ReplyDelete