延长 Apache Superset ElasticSearch 连接器的超时时间。

huangapple go评论70阅读模式
英文:

Extend timeout for Apache Superset ElasticSearch connector

问题

我正在尝试使用Apache Superset,并尝试使用Elasticsearch连接器来查询一些索引。对于一些基本操作,它运行正常,但是当我尝试创建需要超过10秒的图表时,它会抛出一个异常。

是否有配置设置可以增加连接器的超时时间?我似乎找不到任何相关设置。

elasticsearch.exceptions.ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host='host.docker.internal', port=9200): Read timed out. (read timeout=10))

英文:

I'm trying out Apache Superset, and I'm trying to use the Elasticsearch connector to be able to query some indices. It works fine for some basic things, however for larger data sets, when I try to create a chart that take > 10 seconds, it throws an exception.

Is there a config setting that will reach in and increase the timeout for connectors? I can't seem to find anything.

elasticsearch.exceptions.ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host='host.docker.internal', port=9200): Read timed out. (read timeout=10))

答案1

得分: 0

弄清楚了。在连接字符串中,您可以添加查询参数,如?timeout=100

英文:

Figured it out. In the connection string, you add query params like `?timeout=100'

huangapple
  • 本文由 发表于 2023年7月13日 21:18:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76679815.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定