When trying to change compaction strategy to DTCS, invoking:
ALTER TABLE sp.table WITH compaction = {
'class' : 'DateTieredCompactionStrategy ',
'base_time_seconds':'3600',
'max_sstable_age_days':'7'
};
Ends up with:
ConfigurationException: <ErrorMessage code=2300 [Query invalid because of configuration issue] message="Unable to find compaction strategy class 'org.apache.cassandra.db.compaction.DateTieredCompactionStrategy '">
My environment:
It looks like you have a space at the end of the compaction strategy string. Try:
ALTER TABLE sp.table WITH compaction = {
'class' : 'DateTieredCompactionStrategy',
'base_time_seconds':'3600',
'max_sstable_age_days':'7'
};