title: EsHadoopIllegalArgumentException: Cannot detect ES version
body: <p>This question has been asked before, but I am using hive instead of spark. So I didn't quite understand how to apply the solution to my problem. So I am posting  my question.
  I am learning to connect Elasticsearch with hive and I am using this link.    <a href="https://www.elastic.co/guide/en/elasticsearch/hadoop/current/hive.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/hadoop/current/hive.html</a></p>
  
  <p>I installed Elasticsearch in my server. I started hive and added the jar file.</p>
  
  <pre><code>add jar /path/elasticsearch-hadoop-6.3.2.jar;
  </code></pre>
  
  <p>Then I tried to create a table using the query given in the above link.</p>
  
  <pre><code>CREATE EXTERNAL TABLE table1 (col1 int, col2 string) STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler' TBLPROPERTIES('es.resource' = 'warehouse/table1','es.index.auto.create' = 'false');
  </code></pre>
  
  <p>That's when I got this error. </p>
  
  <pre><code>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'
  </code></pre>
  
  <p>I tried setting <code>'es.nodes.wan.only' = 'true'</code> but it didn't work.
  Further search says that executors may not be able to connect to Elasticsearch and I need to change network configuration. But how do I do that? I am new to Elasticsearch. Please help.</p>