# Is there a request timeout parameter for spark connector?

**URL:** <https://discuss.elastic.co/t/is-there-a-request-timeout-parameter-for-spark-connector/86712>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [May 22, 2017, 5:00pm UTC](https://discuss.elastic.co/t/is-there-a-request-timeout-parameter-for-spark-connector/86712 "2017-05-22T17:00:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suanmeiguo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suanmeiguo/32/11758_2.png) [@suanmeiguo](https://discuss.elastic.co/u/suanmeiguo)\
**Post date:** [May 22, 2017, 5:00pm UTC](https://discuss.elastic.co/t/is-there-a-request-timeout-parameter-for-spark-connector/86712/1 "2017-05-22T17:00:07Z")

</div>

Occasionally I see request timeout at `phase/query+fetcher/scroll`. I think it's because the cluster is busy and the request didn't come back in 5 minutes (the default scroll timeout) and I see in log that the request was under `path: /_search/scroll, params: {scroll=5m}`.

To verify this I want to increase the request timeout, but I don't find a parameter in the spark support page to specify scroll timeout. There's a `es.http.timeout` but that value is default to 1m.

Is that the parameter I should use or is there another one?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [May 26, 2017, 3:00pm UTC](https://discuss.elastic.co/t/is-there-a-request-timeout-parameter-for-spark-connector/86712/2 "2017-05-26T15:00:26Z")

</div>

I would set `es.http.timeout` to address the client side timeout for waiting on a response, and would also increase `es.scroll.keepalive` to increase the amount of time that the scroll is kept available.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 23, 2017, 3:00pm UTC](https://discuss.elastic.co/t/is-there-a-request-timeout-parameter-for-spark-connector/86712/3 "2017-06-23T15:00:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
