【问题标题】:How to modify System Keyspace (and its columnfamilies) in Cassandra如何在 Cassandra 中修改系统键空间(及其列族)
【发布时间】:2018-07-02 07:06:45
【问题描述】:

我想知道ALTER System 键空间的列族是否有解决方法,例如: schema_columnsschema_columnfamilies

我尝试在 CQLSH 中输入 ALTER CQL 并返回

未经授权:来自服务器的错误:code=2100 [Unauthorized] message="system keyspace is not user-modifiable."

cassandra 中是否有类似 root 的帐户可以帮助我修改系统密钥空间?

【问题讨论】:

  • 你想改变什么?
  • @ChrisLohfink 嗨,我想更改 schema_columns 表以更改 GC_GRACE_SECONDS 以调查 sstable 问题
  • 但是来自schema_columns的SSTable有问题吗?

标签: cassandra datastax cql cassandra-2.1


【解决方案1】:

不允许修改系统键空间。

如果使用 cassandra 3.x,请尝试根据您的要求在系统键空间表上创建物化视图。

【讨论】:

    猜你喜欢
    • 2014-04-18
    • 2016-05-15
    • 2013-03-23
    • 2015-01-16
    • 2015-03-15
    • 1970-01-01
    • 2014-05-09
    • 2011-02-02
    • 2013-08-27
    相关资源
    最近更新 更多