DataStax Devcenter fails to connect to the remote cassandra database

前端 未结 4 1026
遇见更好的自我
遇见更好的自我 2021-01-18 08:40

OS: CentOS 6.4 (server)

I have successfully installed (yum install dsc20) the cassandra database layer in my server and can connect to it using the CQL SHel (cqlsh).

4条回答
  •  旧时难觅i
    2021-01-18 08:56

    DataStax DevCenter being built on top of the DataStax Java driver has the same connectivity requirements as the driver. Namely:

    1. start_native_transport: true
    2. rpc_address: IP or hostname reachable from the client
    3. Machines in the cluster accept connections on port 9042 (the native_transport_port config option)

    If rpc_address is set to either a private IP or to 0.0.0.0, DevCenter will not know what node to connect to.

    If your cluster has multiple nodes and these are using rpc_address: 0.0.0.0, even if you configure DevCenter with the IP(s) of a couple of nodes, it will still have issues discovering the other nodes in the cluster.

    In cassandra.yaml there's a comment/warning about using rpc_address: 0.0.0.0:

    Note that unlike ListenAddress above, it is allowed to specify 0.0.0.0 here if you want to listen on all interfaces, but that will break clients that rely on node auto-discovery.

    Note: it is possible that in the future DevCenter might be able to ignore/filter out nodes in the cluster configured with rpc_address: 0.0.0.0.

提交回复
热议问题