DataStax Devcenter fails to connect to the remote cassandra database

前端 未结 4 945
遇见更好的自我
遇见更好的自我 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 08:55

    If there's somebody working with docker locally, it can run this command.

    docker run --name cassandra -p 127.0.0.1:9042:9042 -p 127.0.0.1:9160:9160 
    -e CASSANDRA_LISTEN_ADDRESS=localhost 
    -e CASSANDRA_BROADCAST_ADDRESS=localhost
    -e CASSANDRA_RPC_ADDRESS=localhost -d cassandra
    

提交回复
热议问题