逻辑表修复
greptime cli meta repair-logical-tables 命令可以用于 修复 GreptimeDB 集群的逻辑表。在某些情况下,逻辑表元数据可能与存储在元数据存储中的元数据不一致。此命令可用于修复逻辑表元数据。
提示
该工具需要连接到元数据存储和 Datanode。确保集群正在运行且工具可与 Datanode 通信。
命令语法
greptime cli meta repair-logical-tables [OPTIONS]
选项
| 选项 | 描述 | 默认值 | 值 |
|---|---|---|---|
--store-addrs <STORE_ADDRS>... | 元数据存储服务地址。可以是 etcd、postgres 或 mysql。 对于 postgres 存储,格式为: "password=password dbname=postgres user=postgres host=localhost port=5432"。 对于 etcd 存储,格式为: "127.0.0.1:2379"。 对于 mysql 存储,格式为: "mysql://user:password@ip:port/dbname" | - | - |
--max-txn-ops <MAX_TXN_OPS> | 单个事务中操作的最大数量。仅在使用 [etcd-store] 时使用 | 128 | - |
--backend <BACKEND> | 元数据存储后端类型 | etcd-store | etcd-store, memory-store, postgres-store, mysql-store |
--store-key-prefix <STORE_KEY_PREFIX> | 元数据存储前缀 | - | - |
--meta-table-name <META_TABLE_NAME> | 元数据存储的表名。元数据存储后端为 [postgres-store] 或 [mysql-store] 时使用 | greptime_metakv | - |
--table-names <TABLE_NAMES> | 要修复的表名,用逗号分隔 | - | |
--table-ids <TABLE_IDS> |