README first.
-
The main website for Apache Cassandra is: http://cassandra.apache.org
This page will be have Cassandra information that is common across all articles, anything that is considered as widely known.
cqlsh
When seeing commands typed at the prompt: cassandra@cqlsh> that is the Cassandra query language shell, invoke by running the following, with demo default credentials.
cqlsh -u cassandra -p cassandra Connected to Training at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.11.3 | CQL spec 3.4.4 | Native protocol v4] Use HELP for help. cassandra@cqlsh>
Replication strategy for keyspaces.
For demo purposes, when using a single node, use SimpleStrategy, for production use NetworkTopologyStrategy. For demo installs using if you use NetworkTopologyStrategy and following examples, you are likely to get errors like "NoHostAvailable" when inserting data.
© Lightnetics 2024