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:
- cqlsh uses port 9042 access cassandra, not 9061. it's declared in
cassandra.yaml
native_transport_port
- by default cassandra listens cql connections on
localhost
. seelisten_address
incassandra.yaml
, set node's public ip address.
i suggest:
- double-check cassandra logs completed startup without errors.
- try connect localhost cqlsh
Comments
Post a Comment