Cassandra cqlsh - connection refused

前端 未结 20 2088
名媛妹妹
名媛妹妹 2020-12-01 11:50

I\'ve just started working with Cassandra (datastax), version 2.1.3 and cqlsh version 5.0.1.

Cassandra starts up fine and the cluster is operational instantly.

20条回答
  •  死守一世寂寞
    2020-12-01 12:21

    Try to change the rpc_address to point to the node's IP instead of 0.0.0.0 and specify the IP while connecting to the cqlsh, as if the IP is 10.0.1.34 and the rpc_port left to the default value 9160 then the following should work:

    cqlsh 10.0.1.34 9160 
    

    Or:

    cqlsh 10.0.1.34 
    

    Also make sure that start_rpc is set to true in /etc/cassandra/cassandra.yaml configuration file.

提交回复
热议问题