Can't connect to cassandra node from different host

后端 未结 8 1335
無奈伤痛
無奈伤痛 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

    Set the following config parameter in cassandra.yaml file (For CentOS it is located in /etc/cassandra/default.conf)

    rpc_address: 0.0.0.0

    Verify that following values are same as below(usually they are default)

    start_native_transport:true

    native_transport_port:9042

    Last step for CentOS , Update the firewall configuration and allow port 9042 through for incoming connections

    1. Access the firewall from “System / Administration / Firewall” in the CentOS menu
    2. Add the port under “Other Ports”

提交回复
热议问题