备份模式需要什么?
What is necessary to backup the schema?
Cassandra can only restore data from a snapshot when the table schema exists. If you have not backed up the schema, [...]
架构的完整备份需要什么?简单地备份 system
键空间?
在 cqlsh(包含在 Cassandra 中)中,使用 DESC SCHEMA
命令。
DESCRIBE [FULL] SCHEMA
Output CQL commands that could be used to recreate the entire (non-system) schema.
Works as though "DESCRIBE KEYSPACE k" was invoked for each non-system keyspace
k. Use DESCRIBE FULL SCHEMA to include the system keyspaces.
无需备份系统密钥空间,在新节点上安装 DSE 时将重新创建它们。但是,您需要任何用户定义的键空间的架构。
要备份架构:
$ cqlsh -e "DESCRIBE SCHEMA;" > schema.out
要在新节点上恢复:
$ cqlsh < schema.out
Cassandra can only restore data from a snapshot when the table schema exists. If you have not backed up the schema, [...]
架构的完整备份需要什么?简单地备份 system
键空间?
在 cqlsh(包含在 Cassandra 中)中,使用 DESC SCHEMA
命令。
DESCRIBE [FULL] SCHEMA
Output CQL commands that could be used to recreate the entire (non-system) schema.
Works as though "DESCRIBE KEYSPACE k" was invoked for each non-system keyspace
k. Use DESCRIBE FULL SCHEMA to include the system keyspaces.
无需备份系统密钥空间,在新节点上安装 DSE 时将重新创建它们。但是,您需要任何用户定义的键空间的架构。
要备份架构:
$ cqlsh -e "DESCRIBE SCHEMA;" > schema.out
要在新节点上恢复:
$ cqlsh < schema.out