Start the Cassandra/Stargate Cluster
✅ Start up the Cassandra cluster
This command can take a few minutes, please be patient. It is:
- Starting a Cassandra Coordinator
- Starting up 3 Cassandra Nodes
- Starting Stargate nodes
git clone https://github.com/stargate/stargate
cd stargate/docker-compose/cassandra-4.0
./start_cass_40_dev_mode.sh
cp /workspace/httpie-katapod/assets/config-cassandra.json ~/.config/httpie/config.json
Again, please be patient.
Create a token to use for commands. This token will expire if you don't use it for 30 minutes. Sometimes the servers can take a moment to fully come online, if you get an error when creating the token just click again to get a new one.
The future steps will refer back to this command, which you can use any time your token expires.
/workspace/httpie-katapod/token.sh
This sets a session in your httpie configuration which will be used whenever you make an HTTPie call.
✅ Create database keyspace library
using the /schemas/keyspaces endpoint:
http POST http://localhost:8082/v2/schemas/keyspaces name=library