如何使点击室实现的视图在带有6个节点的群集上正确工作

发布于 2025-02-10 07:14:00 字数 319 浏览 1 评论 0原文

我的Clickhouse群集中有6个节点。我在集群上创建本地表(使用ReplicatedReplacingMergetree引擎)和分布式表。创建了对节点“ CDH03”的实现视图,以从表加入数据并将结果写入分布式表。然后,我在节点“ CDH06”上创建一个实现的视图,该视图从分布式表中选择数据,然后使用MySQL引擎将其推到MySQL。

但是,由于数据正确地写入了分布式表,并且可以在其他节点上看到,因此对节点“ CDH06”的实现视图对MySQL没有写入。

我尝试在其他节点上使用相同的查询来创建实现的视图,但是只有在节点“ CDH03”上才能正常工作。这怎么了?我该怎么做才能使它起作用?

There is 6 nodes in my clickhouse cluster. I create local tables(with ReplicatedReplacingMergeTree engine) and distributed tables on the cluster. A Materialized View on node 'cdh03' is created to join data from tables and write the result to the distributed table. I then create a Materialized View on node 'cdh06', which select data from the distributed table and push them to mysql, with a mysql engine.

However, since data is correctly writen to the distributed table, and could be seen on other nodes, the Materialized View on node 'cdh06' writes nothing to mysql.

I tried to create the Materialized View with the same query on other nodes, but only on the node 'cdh03' it works correctly. What's wrong with this? And what can I do to make it work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文