【发布时间】:2015-01-31 05:14:39
【问题描述】:
我们已经移除了分析数据中心,但我发现有很多东西在闲逛。例如键空间
select * from schema_keyspaces;
HiveMetaStore | True | org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"1"}
我还在日志文件中留下了对 CFSCompactionStrategy 的引用。我想彻底清理我们的戒指。没有奇怪的键空间...删除 CFSCompactionStrategy Ideas?
编辑了推荐解决方案中的更多信息:
UPDATE schema_keyspaces set strategy_options = '{"Cassandra":"2"}' where keyspace_name in ('keyspace1', 'keyspace2');
drop keyspace cfs_archive;
drop keyspace dse_security;
drop keyspace cfs;
DROP KEYSPACE "HiveMetaStore";
然后清理文件夹...
这可能也是需要的:
DELETE from system.schema_columnfamilies where keyspace_name = 'cfs';
delete from system.schema_columns where keyspace_name in ('cfs', 'cfs_archive');
【问题讨论】: