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

しかし、その後、キャッシュはまだオフになっているようです。また、構成ファイルで有効にしました。また、Describe はオフであるとも述べています。

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

これは、https: //issues.apache.org/jira/browse/CASSANDRA-4561によって1.1.5で修正されています。1.1.5は本日ミラーリングされますが、それ以前はhttp://people.apache.org/~slebresne/で入手できます。

于 2012-09-10T17:08:39.370 に答える