Cassandra cqlsh - connection refused

前端 未结 20 2056
名媛妹妹
名媛妹妹 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:23

    First, you need to check the port 9042 whether this open or not if open then check below things like rpc_address and listen_address. you should set the server own IP address instead 0.0.0.0 or 127.0.0.1.

    If all okay then please run below command to connect cqlsh.

    cqlsh IP address 9042

    If you enable authentication and authorization you have to put user/pass with this command.

提交回复
热议问题