Can't connect to cassandra node from different host

后端 未结 8 1297
無奈伤痛
無奈伤痛 2020-12-05 11:35

I have a cassandra node at a machine. When I access cqlsh from the same machne it works properly.

But when I tried to connect to it\'s cqlsh using \"192.x.x.x\" from

8条回答
  •  时光取名叫无心
    2020-12-05 11:44

    Probably the remote Cassandra node is not bound to the external network interface but to the loopback one (this is the default configuration). You can ensure this by using "telnet thecassandrahost 9042" from the remote machine, it should not work.

    In order to bind Cassandra to the external network interface you need to edit the cassandra.yaml configuration file and set the properties "listen_address" and "rpc_address" to your remote IP or "0.0.0.0" (not all versions of Cassandra support wildcard addresses).

    Check also that the firewall is properly configured or disabled (sudo service iptables stop).

提交回复
热议问题