# Hivesever unable to load EsStorageHandler class from elasticsearch-hadoop

**URL:** <https://discuss.elastic.co/t/hivesever-unable-to-load-esstoragehandler-class-from-elasticsearch-hadoop/2319>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [June 10, 2015, 12:50pm UTC](https://discuss.elastic.co/t/hivesever-unable-to-load-esstoragehandler-class-from-elasticsearch-hadoop/2319 "2015-06-10T12:50:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjun\_Deshwal](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Arjun\_Deshwal](https://discuss.elastic.co/u/Arjun_Deshwal)\
**Post date:** [June 10, 2015, 12:50pm UTC](https://discuss.elastic.co/t/hivesever-unable-to-load-esstoragehandler-class-from-elasticsearch-hadoop/2319/1 "2015-06-10T12:50:31Z")

</div>

I am using apache hadoop-2.2.0 and hive-0.12.0  
I have installed Elasticsearch 1.5.2

I have this configuration in hive-site.xml

 hive.aux.jars.path /pathTo/elasticsearch-hadoop-2.0.1.jar

When i create table in hive

CREATE EXTERNAL TABLE artists (id int,name string,links string)  
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'  
TBLPROPERTIES('es.resource' = 'radio/artists')

Throws exception:-  
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org.apache.hadoop.hive.ql.metadata.HiveException: Error in loading storage handler.org.elasticsearch.hadoop.hive.EsStorageHandler

What am I missing? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Arjun\_Deshwal](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Arjun\_Deshwal](https://discuss.elastic.co/u/Arjun_Deshwal)\
**Post date:** [June 11, 2015, 6:58am UTC](https://discuss.elastic.co/t/hivesever-unable-to-load-esstoragehandler-class-from-elasticsearch-hadoop/2319/2 "2015-06-11T06:58:41Z")

</div>

I figured it out.  
I haven't kept the file(elasticsearch-hadoop-2.0.1.jar) in $HIVE\_HOME/lib folder .

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [June 12, 2015, 8:54am UTC](https://discuss.elastic.co/t/hivesever-unable-to-load-esstoragehandler-class-from-elasticsearch-hadoop/2319/3 "2015-06-12T08:54:03Z")

</div>

Make sure to use only one version of the jar (2.0.2 vs 2.0.1). And if possible, upgrade to 2.1.0.Beta4 - while marked as a Beta, contains plenty of fixes.

---

<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:** [July 6, 2017, 1:28pm UTC](https://discuss.elastic.co/t/hivesever-unable-to-load-esstoragehandler-class-from-elasticsearch-hadoop/2319/4 "2017-07-06T13:28:16Z")

</div>


