2

我在为大型 cassandra 1.1.2 cf 激活行级缓存时遇到了一些问题:

如果我跑

update column family user_data with caching = 'ALL';

(无论我是否使用引号)

它说

515b08ac-89c5-3890-bcc1-60bf55f0228a
Waiting for schema agreement...
... schemas agree across the cluster

但之后,缓存似乎仍然关闭。我也在配置文件中激活了它。描述还说它已关闭:

create column family user_data
  with column_type = 'Standard'
  and comparator = 'UTF8Type'
  and default_validation_class = 'BytesType'
  and key_validation_class = 'UTF8Type'
  and read_repair_chance = 0.1
  and dclocal_read_repair_chance = 0.0
  and gc_grace = 864000
  and min_compaction_threshold = 4
  and max_compaction_threshold = 32
  and replicate_on_write = true
  and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'
  and caching = 'KEYS_ONLY'
  and column_metadata = [
    {column_name : 'content',
    validation_class : BytesType}]
  and compression_options = {'sstable_compression' : 'org.apache.cassandra.io.compress.SnappyCompressor'};

使用 CQL 更新它(ALTER TABLE user_data WITH caching='all';)也不起作用。

4

1 回答 1

2

这在 1.1.5 中由https://issues.apache.org/jira/browse/CASSANDRA-4561修复。1.1.5 今天要出镜了,但在那之前你可以在http://people.apache.org/~slebresne/上得到它。

于 2012-09-10T17:08:39.370 回答