Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 2.35 KB

step1-cassandra.md

File metadata and controls

68 lines (52 loc) · 2.35 KB
Exploring Stargate with HTTPie ℹ️ For technical support, please contact us via email or LinkedIn.
⬅️ Back Step 1 of 3 Next ➡️ Tables in the REST API
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/Refresh your Token

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
⬅️ Back - Intro Next - Tables in the REST API