clickhouse distributed

阅读: 评论:0

clickhouse distributed

clickhouse distributed

程序在执行sql语句时程序控制台报错如下:
Code: 159, e.displayText() = DB::Exception: Watching task /clickhouse/task_queue/ddl/query-0000001991 is executing longer than distributed_ddl_task_timeout (=180) seconds. There are 1 unfinished hosts (0 of them are currently active), they are going to execute the query in background (version 20.3.10.75)

通过clickhouse的系统数据库的查询日志表query_log可以看到查询时间超过了系统默认时间(180s),并且显示了具体异常信息

分布式DDL查询(带有 on cluster XXX)的执行等待时间,系统默认是180s,通过查询系统设置表可以看到,changed=0表示没有被修改过,readonly=0表示可以修改

如果是阿里云的云数据库,可以通过执行以下语句修改执行等待时间
set global on cluster default distributed_ddl_task_timeout=200;

如果是本地安装的clickhouse数据库,通过在配置文件l里增加下面参数即可修改
<distributed_ddl_task_timeout>200</distributed_ddl_task_timeout>

本文发布于:2024-01-29 04:11:06,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170647266912600.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:clickhouse   distributed
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23