Frequently Asked Questions for Cassandra

How can I list all the nodes in a Cassandra cluster?

If JMX authentication is not enabled, run the following command:

nodetool status

If JMX authentication is not enabled, and SSL is enabled for JMX interface, run the following command:

nodetool status --ssl

If JMX authentication is enabled, run the following command:

nodetool -u username -pw password status

If both JMX authentication and SSL are enabled for JMX interface, run the following command:

nodetool -u username -pw password status --ssl

How do I connect to the cqlsh interface?

If CQL authentication is not enabled, run the following command:

cqlsh hostIP cqlport

If CQL authentication is not enabled, and SSL is enabled for CQL interface, run the following command:

cqlsh hostIP cqlport --ssl

If CQL authentication is enabled, run the following command:

cqlsh hostIP cqlport -u username -p password

If both CQL authentication and SSL are enabled for CQL interface, run the following command:

cqlsh hostIP cqlport -u username -p password --ssl
×

Loading...