How do i connect to the cassandra cluster?



  • A tool call cqlsh is used for interacting with the Cassandra cluster. The command is the Cassandra Query Language Shell. The API to the Cassandra is know just as the CQL - Cassandra Query Language.

    To connect to a cluster node.

    $ cqlsh localhost
    Connected to Test Cluster at localhost:9042.
    [cqlsh 5.0.1 | Cassandra 3.0.17 | CQL spec 3.4.0 | Native protocol v4]
    Use HELP for help.
    cqlsh> 
    

    As well as the cqlsh command man client drivers are available. See the list here: http://cassandra.apache.org/doc/latest/getting_started/drivers.html


Log in to reply
 

© Lightnetics 2024