Lab 18: Cassandra Wide Column
Overview
Step 1: Launch Cassandra
docker run -d --name cassandra-lab \
-e MAX_HEAP_SIZE=512M \
-e HEAP_NEWSIZE=128M \
cassandra:4.1
echo "Waiting for Cassandra to start (60-90 seconds)..."
for i in $(seq 1 60); do
docker exec cassandra-lab cqlsh -e "SELECT now() FROM system.local;" 2>/dev/null | grep -q "system.time_uuid" && break || sleep 3
done
echo "Cassandra ready!"
docker exec cassandra-lab nodetool statusStep 2: Create Keyspace with Replication Strategy
Step 3: Create Tables — Partition Key and Clustering Columns
Step 4: INSERT, SELECT, UPDATE Operations
Step 5: CQL Data Types and TTL
Step 6: Consistency Levels
Step 7: nodetool — Cluster Operations
Step 8: Capstone — Compaction Strategies
Summary
Concept
Key Detail
Command/Setting
Key Takeaways
Last updated
