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

时间:2015-12-16 08:52:51

标签: cassandra ami

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

[12/16/15 9:27:27:146 CET] 00000096 webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [CATAPP#web-0.0.1-SNAPSHOT.war]:.Destroying Spring FrameworkServlet 'IntegrationContext'
[12/16/15 9:39:36:112 CET] 000000f1 ThreadMonitor W   WSVR0605W: Thread "Default : 2" (00000096) has been active for 729034 milliseconds and may be hung.  There is/are 1 thread(s) in total in the server that may be hung.

结束于:

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

我的环境:

  • cqlsh 5.0.1 | Cassandra 2.2.3 | CQL规范3.3.1 |原生协议v4
  • Amazon DataStax自动群集AMI 2.6.3-1404-pv
  • 的默认配置

1 个答案:

答案 0 :(得分:1)

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

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