Cassandra - 无法找到压缩策略 class 'org.apache.cassandra.db.compaction.DateTieredCompactionStrategy '

Cassandra - Unable to find compaction strategy class 'org.apache.cassandra.db.compaction.DateTieredCompactionStrategy '

尝试将压缩策略更改为 DTCS 时,调用:

ALTER TABLE sp.table WITH compaction = {
    'class' :  'DateTieredCompactionStrategy ',
    'base_time_seconds':'3600',
    'max_sstable_age_days':'7'
};

最后是:

ConfigurationException: <ErrorMessage code=2300 [Query invalid because of configuration issue] message="Unable to find compaction strategy class 'org.apache.cassandra.db.compaction.DateTieredCompactionStrategy '">

我的环境:

看起来压缩策略字符串的末尾有一个 space。尝试:

ALTER TABLE sp.table WITH compaction = {
    'class' :  'DateTieredCompactionStrategy',
    'base_time_seconds':'3600',
    'max_sstable_age_days':'7'
};