Advertisement
absolute100

Untitled

Feb 3rd, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. CREATE KEYSPACE test1 WITH replication = {'class': 'SimpleStrategy', '': '3'} AND durable_writes = true;
  2.  
  3. CREATE TABLE realtime.content_hourly_offset (
  4. content_id int,
  5. hour int,
  6. kafka_partition int,
  7. clicks_count int,
  8. kafka_offset int,
  9. PRIMARY KEY (content_id, hour, kafka_partition)
  10. ) WITH CLUSTERING ORDER BY (hour ASC, kafka_partition ASC)
  11. AND bloom_filter_fp_chance = 0.01
  12. AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
  13. AND comment = ''
  14. AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
  15. AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
  16. AND dclocal_read_repair_chance = 0.1
  17. AND default_time_to_live = 0
  18. AND gc_grace_seconds = 864000
  19. AND max_index_interval = 2048
  20. AND memtable_flush_period_in_ms = 0
  21. AND min_index_interval = 128
  22. AND read_repair_chance = 0.0
  23. AND speculative_retry = '99.0PERCENTILE';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement