# Elasticsearch load through beeline

**URL:** <https://discuss.elastic.co/t/elasticsearch-load-through-beeline/276741>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [June 23, 2021, 8:04am UTC](https://discuss.elastic.co/t/elasticsearch-load-through-beeline/276741 "2021-06-23T08:04:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen2](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@praveen2](https://discuss.elastic.co/u/praveen2)\
**Post date:** [June 23, 2021, 8:04am UTC](https://discuss.elastic.co/t/elasticsearch-load-through-beeline/276741/1 "2021-06-23T08:04:54Z")

</div>

we see this peculiar issue when loading data through es-hadoop connector

es version we use 7.11.2

jars added, we see the same behavior when the jar path is either local or hdfs  
elasticsearch-hadoop-7.11.2.jar;  
commons-httpclient-3.0.1.jar;

The below sequence of operation does not work

1. Connect to beeline
2. Add elastic search jar and http client jar
3. Run insert statement ----\> fails with unable to authenticate user [\*\*\*\*\*\*] for REST request [/]

The below sequence of operation works every time

1. Connect to beeline
2. Run insert statement ----\>fails with Error in loading storage handler.org.elasticsearch.hadoop.hive.EsStorageHandler
3. Add elastic search jar and http client jar
4. Rerun insert statement ---\> success

The first sequence of operations works fine in hive cli.

Has anyone faced this, any suggestion experts?

---

<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 21, 2021, 8:05am UTC](https://discuss.elastic.co/t/elasticsearch-load-through-beeline/276741/2 "2021-07-21T08:05:10Z")

</div>

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