# AWS Error:- Cannot detect ES version: - typically this happens if the network/Elasticsearch cluster is not accessible or when tar geting a WAN/Cloud instance without the proper setting 'es.nodes.wan.only'

**URL:** <https://discuss.elastic.co/t/aws-error-cannot-detect-es-version-typically-this-happens-if-the-network-elasticsearch-cluster-is-not-accessible-or-when-tar-geting-a-wan-cloud-instance-without-the-proper-setting-es-nodes-wan-only/121665>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [February 27, 2018, 1:49pm UTC](https://discuss.elastic.co/t/aws-error-cannot-detect-es-version-typically-this-happens-if-the-network-elasticsearch-cluster-is-not-accessible-or-when-tar-geting-a-wan-cloud-instance-without-the-proper-setting-es-nodes-wan-only/121665 "2018-02-27T13:49:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnaSH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishnash/32/31317_2.png) [@krishnaSH](https://discuss.elastic.co/u/krishnaSH)\
**Post date:** [February 27, 2018, 1:49pm UTC](https://discuss.elastic.co/t/aws-error-cannot-detect-es-version-typically-this-happens-if-the-network-elasticsearch-cluster-is-not-accessible-or-when-tar-geting-a-wan-cloud-instance-without-the-proper-setting-es-nodes-wan-only/121665/1 "2018-02-27T13:49:51Z")

</div>

I am connecting Hive in AWS EMR instancewith Elasticsearch and firing the command (PFB) to create a table in hive:

```
 create external table abc(schema) STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler' TBLPROPERTIES('es.resource' = 'indexname/typename', 'es.port' = '9200', 'es.nodes'='x.x.x.x', es.wan.mode', 'es.nodes.wan.only' = 'true' . 'es.node' = 'x.x.x.x');

```

I am getting the below error:  
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 tar  
geting a WAN/Cloud instance without the proper setting 'es.nodes.wan.only'

Note: I dont have firewall active. Amongst the solutions I found on internet, it tells me to check whether my ES nodes are able to communicate with hadoop. How can I check that?

Could anyone please enlighten me with any other solution ?  
TIA.

---

<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:** [March 1, 2018, 9:59pm UTC](https://discuss.elastic.co/t/aws-error-cannot-detect-es-version-typically-this-happens-if-the-network-elasticsearch-cluster-is-not-accessible-or-when-tar-geting-a-wan-cloud-instance-without-the-proper-setting-es-nodes-wan-only/121665/2 "2018-03-01T21:59:19Z")

</div>

> [@krishnaSH](#):
>
> ... 'es.nodes'='x.x.x.x', es.wan.mode', 'es.nodes.wan.only' = 'true' . 'es.node' = 'x.x.x.x' ...

These settings don't seem to have correctly paired quotes; I'm assuming this is a copy paste error?

This is a fairly common error when running on a cloud environment. Almost all cloud providers that offer distributed computing make it so that their worker nodes are placed in a sandboxed network. This means that they can ONLY talk to each other and to the whitelisted hosts from the cloud platform. This is different for each cloud distribution, so check to make sure that wherever your ES cluster is running that the worker nodes from Hive are able to reach the cluster. It might help to reach out to your cloud provider to ask how to do this.

---

<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:** [March 29, 2018, 10:01pm UTC](https://discuss.elastic.co/t/aws-error-cannot-detect-es-version-typically-this-happens-if-the-network-elasticsearch-cluster-is-not-accessible-or-when-tar-geting-a-wan-cloud-instance-without-the-proper-setting-es-nodes-wan-only/121665/3 "2018-03-29T22:01:59Z")

</div>

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