# Cannot detect ES version

**URL:** <https://discuss.elastic.co/t/cannot-detect-es-version/67834>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [December 2, 2016, 8:20am UTC](https://discuss.elastic.co/t/cannot-detect-es-version/67834 "2016-12-02T08:20:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wow148](https://avatars.discourse-cdn.com/v4/letter/w/898d66/32.png) [@wow148](https://discuss.elastic.co/u/wow148)\
**Post date:** [December 2, 2016, 8:20am UTC](https://discuss.elastic.co/t/cannot-detect-es-version/67834/1 "2016-12-02T08:20:28Z")

</div>

Hi Everyone, i trying to connect hive with elasticsearch using the ES-Hadoop Connector but i receive this error:  
"java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from  
org.apache.hadoop.hive.ql.exec.DDLTask. org.elasticsearch.hadoop.EsHadoopIllegalArgumentException:  
Cannot detect ES version - typically this happens if the network/Elasticsearch cluster is not accessible  
or when targeting a WAN/Cloud instance without the proper setting 'es.nodes.wan.only'"

thank you

---

<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:** [December 2, 2016, 11:57pm UTC](https://discuss.elastic.co/t/cannot-detect-es-version/67834/2 "2016-12-02T23:57:29Z")

</div>

This often happens if your Hive nodes cannot communicate with your ES nodes. You will need to recheck your connections.

---

<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:** [December 30, 2016, 11:57pm UTC](https://discuss.elastic.co/t/cannot-detect-es-version/67834/3 "2016-12-30T23:57:35Z")

</div>

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