下载 CloudQuery CLI 或从 CloudQuery 云 开始。
从 CloudQuery Hub 选择一个来源。
- 配置 ClickHouse 目标插件
kind: destination spec: name: "clickhouse" path: "cloudquery/clickhouse" registry: "cloudquery" version: "v4.0.2" write_mode: "append" spec: connection_string: "clickhouse://${CH_USER}:${CH_PASSWORD}@localhost:9000/${CH_DATABASE}" # Optional parameters # cluster: "" # ca_cert: "" # engine: # name: MergeTree # parameters: [] # # batch_size: 10000 # batch_size_bytes: 5242880 # 5 MiB # batch_timeout: 20s
- 运行同步
cloudquery sync source.yaml clickhouse.yaml