Anu*_*ana 1 cassandra datastax
参考“ https://docs.datastax.com/en/cql/3.1/cql/cql_reference/tabProp.html ”我需要配置gc宽限期作为删除时墓碑的解决方案。
但是我在重新启动时遇到错误。
"com.google.inject.CreationException: Unable to create injector, see the following errors: 1) An exception was caught and reported. Message: Invalid yaml. Please remove properties [gc_grace_seconds] from your cassandra.yaml
at com.datastax.bdp.DseModule.configure(Unknown Source)
"
cqlsh> show VERSION
[cqlsh 5.0.1 | Cassandra 3.11.0.1855 | DSE 5.1.3 | CQL spec 3.4.4 | Native protocol v4]
Run Code Online (Sandbox Code Playgroud)
您可以在连接到 cqlsh 后更改您的表,默认情况下 gc_grace_period 的值为 10 天。
连接到 clqsh cqlsh cqlsh> alter keyspace.table_name with gc_grace_seconds = 864000 ;
注意:10 天 = 864000 秒
| 归档时间: |
|
| 查看次数: |
1891 次 |
| 最近记录: |