# Elasticsearch-hadoop connector rest client

**URL:** <https://discuss.elastic.co/t/elasticsearch-hadoop-connector-rest-client/35771>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [November 27, 2015, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-connector-rest-client/35771 "2015-11-27T15:02:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![George](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@George](https://discuss.elastic.co/u/George)\
**Post date:** [November 27, 2015, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-connector-rest-client/35771/1 "2015-11-27T15:02:28Z")

</div>

Hello @costin,

Is it more advised to use rest client from elastichsearch-hadoop library for searching in elasticsearch instead of using the java client?  
Or let me put it this way, what advantages does rest client from the es-hadoop library provide over the standard java client (for searching in elasticsearch not for ingesting data)?

By rest client I mean [https://github.com/elastic/elasticsearch-hadoop/blob/master/mr/src/main/java/org/elasticsearch/hadoop/rest/RestClient.java](https://github.com/elastic/elasticsearch-hadoop/blob/master/mr/src/main/java/org/elasticsearch/hadoop/rest/RestClient.java)

The question refers to the following versions: elastichsearch-hadoop 2.2.0-beta1 and the elasticsearch 2.0 java api.

Many thanks!

---

<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:** [December 8, 2015, 1:53pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-connector-rest-client/35771/2 "2015-12-08T13:53:09Z")

</div>

The "rest client" in ES-Hadoop is not meant for public consumption. Hence why there are no docs for it and why it's not advertised anywhere.  
Thus the answer to your question is "don't use it'. ES-Hadoop is meant to be used through the various libraries/runtimes it integrates with.  
If that's not good enough/working for you, any other official client is a good alternative.

---

<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:27pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-connector-rest-client/35771/3 "2017-07-06T13:27:03Z")

</div>


