跳转到正文

Docker 验证证据 ​

Apache Cassandra 已验证 · Verified 🕒 快照采集: 2026-08-23 15:15:53 UTC
🐳 镜像:server:由 CASSANDRA_IMAGE 锁定
🛠️ 关键工具:cassandracqlshnodetool
🚀 运行/交互CREATE KEYSPACE/TABLE → INSERT → SELECT → DESCRIBE TABLES → tracing
docker-session.out.txt
$ /opt/cassandra/bin/cqlsh -e "DESCRIBE CLUSTER"
Cluster: Test Cluster
Partitioner: Murmur3Partitioner
Snitch: DynamicEndpointSnitch

$ /opt/cassandra/bin/cqlsh -e fixed-session.cql
id | name  | score
----+-------+-------
  1 | Alice |    30
  2 |   Bob |    20
  3 | Carol |    40

(3 rows)

CREATE TABLE hello.items (
    id int PRIMARY KEY,
    name text,
    score int
) WITH additional_write_policy = '99p'
    AND allow_auto_snapshot = true
    AND bloom_filter_fp_chance = 0.01
    AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
    AND cdc = false
    AND comment = ''
    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
    AND compression = {'chunk_length_in_kb': '16', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND memtable = 'default'
    AND crc_check_chance = 1.0
    AND default_time_to_live = 0
    AND extensions = {}
    AND gc_grace_seconds = 864000
    AND incremental_backups = true
    AND max_index_interval = 2048
    AND memtable_flush_period_in_ms = 0
    AND min_index_interval = 128
    AND read_repair = 'BLOCKING'
    AND speculative_retry = '99p';

Released under the MIT License.