doris查询报错err: Error 1105: errCode = 2, detailMessage = query timeout

出现报错的原因:很明显是查询超时

解决方法

1、在doris中查看默认的超时时间是300秒

mysql> SHOW VARIABLES LIKE "%query_timeout%";
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| QUERY_TIMEOUT | 300   |
+---------------+-------+
1 row in set (0.00 sec)

2、修改超时时间到1分钟:
(1)只针对本次查询超时的修改

mysql>  SET query_timeout = 60;
Query OK, 0 rows affected (0.00 sec)

(2)全局超时的修改

mysql>  SET global query_timeout = 60;
Query OK, 0 rows affected (0.00 sec)

猜你喜欢

转载自blog.csdn.net/eagle89/article/details/134860757
今日推荐