Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE KEYSPACE test1 WITH replication = {'class': 'SimpleStrategy', '': '3'} AND durable_writes = true;
- CREATE TABLE realtime.content_hourly_offset (
- content_id int,
- hour int,
- kafka_partition int,
- clicks_count int,
- kafka_offset int,
- PRIMARY KEY (content_id, hour, kafka_partition)
- ) WITH CLUSTERING ORDER BY (hour ASC, kafka_partition ASC)
- AND bloom_filter_fp_chance = 0.01
- AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
- AND comment = ''
- AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
- AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
- AND dclocal_read_repair_chance = 0.1
- AND default_time_to_live = 0
- AND gc_grace_seconds = 864000
- AND max_index_interval = 2048
- AND memtable_flush_period_in_ms = 0
- AND min_index_interval = 128
- AND read_repair_chance = 0.0
- AND speculative_retry = '99.0PERCENTILE';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement