Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Caching Cassandra:为列族激活行缓存似乎失败_Caching_Cassandra - Fatal编程技术网

Caching Cassandra:为列族激活行缓存似乎失败

Caching Cassandra:为列族激活行缓存似乎失败,caching,cassandra,Caching,Cassandra,我在为大型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 但此后,缓存似乎仍处于关闭状态。 我还在配置文件中激活了它

我在为大型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
但此后,缓存似乎仍处于关闭状态。 我还在配置文件中激活了它。 descriple还表示它已关闭:

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来更新它(使用caching='all';更改表user_data)也不起作用。

这在1.1.5中通过修改得到了修复。1.1.5今天要去镜子那里,但你可以在那之前拿到它