# Connect Hive to Elasticsearch 6.2.3

**URL:** <https://discuss.elastic.co/t/connect-hive-to-elasticsearch-6-2-3/126982>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [April 5, 2018, 6:34pm UTC](https://discuss.elastic.co/t/connect-hive-to-elasticsearch-6-2-3/126982 "2018-04-05T18:34:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARRAKCHI\_Tarik](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@MARRAKCHI\_Tarik](https://discuss.elastic.co/u/MARRAKCHI_Tarik)\
**Post date:** [April 5, 2018, 6:34pm UTC](https://discuss.elastic.co/t/connect-hive-to-elasticsearch-6-2-3/126982/1 "2018-04-05T18:34:49Z")

</div>

HI,

I use Hortonworks and I created a single-node cluster, I installed elasticsearch and kibana (6.2.3).  
I downloaded the jar file elasticsearch-hadoop-6.2.3.jar and added it in hive-site.xml file with the property name hive.aux.jars.path.

I have database named hosix.

I created an external table like this :  
CREATE EXTERNAL TABLE test (...)  
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'  
TBLPROPERTIES('es.resource' = 'hosix/test');

But when I want to select or loaded this table (select or insert queries) It shows me the following error :

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/1/4/146a2219a7fc7a64dbd17cef9efeb11f7044ff33.JPG)

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 9, 2018, 8:24am UTC](https://discuss.elastic.co/t/connect-hive-to-elasticsearch-6-2-3/126982/2 "2018-04-09T08:24:38Z")

</div>

moved this into the hadoop forum

---

<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:** [April 9, 2018, 6:20pm UTC](https://discuss.elastic.co/t/connect-hive-to-elasticsearch-6-2-3/126982/3 "2018-04-09T18:20:08Z")

</div>

We've seen some issues in the past with specifying jars using the hive aux jars path. Have you tried using the `ADD JAR` directive in the hive script to see if that works?

---

<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:** [May 7, 2018, 6:20pm UTC](https://discuss.elastic.co/t/connect-hive-to-elasticsearch-6-2-3/126982/4 "2018-05-07T18:20:09Z")

</div>

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