2012-09-10 44 views
2

我有一點問題的激活行級緩存爲一個大卡桑德拉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 

但事後,緩存STIL我似乎關閉了。 我也在配置文件中激活了它。 描述也說,這是關閉:

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進行更新(改變與緩存=「全部」 TABLE USER_DATA;)也不起作用。

回答