DataStax Devcenter fails to connect to the remote cassandra database

前端 未结 4 958
遇见更好的自我
遇见更好的自我 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条回答
  •  悲哀的现实
    2021-01-18 09:05

    In the cassandra.yaml, I set

    1. listen_address: localhost
    2. rpc_address: 1.2.3.4
    3. broadcast_rpc_address: 1.2.3.4

    After doing a

    sudo service cassandra restart

    DevCenter was able to successfully connect.

    After this change, cqlsh would not start without the address:

    cqlsh 1.2.3.4

    You can set the environment variable $CQLSH_HOST=1.2.3.4. Then simply type cqlsh.

提交回复
热议问题