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 '">
我的环境:
- cqlsh 5.0.1 |卡桑德拉 2.2.3 | CQL 规范 3.3.1 |本机协议 v4
- Amazon DataStax Auto-Clustering AMI 2.6.3-1404-pv 的默认配置
看起来压缩策略字符串的末尾有一个 space。尝试:
ALTER TABLE sp.table WITH compaction = {
'class' : 'DateTieredCompactionStrategy',
'base_time_seconds':'3600',
'max_sstable_age_days':'7'
};
尝试将压缩策略更改为 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 '">
我的环境:
- cqlsh 5.0.1 |卡桑德拉 2.2.3 | CQL 规范 3.3.1 |本机协议 v4
- Amazon DataStax Auto-Clustering AMI 2.6.3-1404-pv 的默认配置
看起来压缩策略字符串的末尾有一个 space。尝试:
ALTER TABLE sp.table WITH compaction = {
'class' : 'DateTieredCompactionStrategy',
'base_time_seconds':'3600',
'max_sstable_age_days':'7'
};