Remote access in Apache Cassandra -


i have 2 machines installed apache cassandra, ips (192.168.1.101 , 192.168.1.102).

i want remote login 192.168.1.102 192.168.1.101

i edited rpc_address= 0.0.0.0 , cassandra.yaml file in 192.168.1.101

when iam trying connect 192.168.1.102 using

cqlsh 192.168.1.101 9061 

iam getting error this

connection error: ('unable connect servers', {'192.168.1.107':  error(111, "tried connecting [('192.168.1.107', 9160)]. last error:  connection refused")}) 

is there configuration want in 192.168.1.102 or missed anything.

please me

thanks in advance

i see multiple issues here:

  1. cqlsh uses port 9042 access cassandra, not 9061. it's declared in cassandra.yaml native_transport_port
  2. by default cassandra listens cql connections on localhost. see listen_address in cassandra.yaml , set node's public ip address.

i suggest:

  • double-check cassandra logs completed startup without errors.
  • try connect localhost cqlsh

Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -