# Clarification on base dependencies

**URL:** <https://discuss.elastic.co/t/clarification-on-base-dependencies/319146>\
**Category:** Elasticsearch\
**Tags:** language-clients, es-hadoop\
**Created:** [November 17, 2022, 7:38am UTC](https://discuss.elastic.co/t/clarification-on-base-dependencies/319146 "2022-11-17T07:38:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chitralverma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chitralverma/32/113451_2.png) [@chitralverma](https://discuss.elastic.co/u/chitralverma)\
**Post date:** [November 17, 2022, 7:38am UTC](https://discuss.elastic.co/t/clarification-on-base-dependencies/319146/1 "2022-11-17T07:38:23Z")

</div>

Do we use the new `elasticsearch-java` client mentioned below in es-hadoop and es-spark ?

[https://mvnrepository.com/artifact/co.elastic.clients/elasticsearch-java/8.5.0](https://mvnrepository.com/artifact/co.elastic.clients/elasticsearch-java/8.5.0)

[![](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6e6de1b1177fe46cfb5c4ec93129018d43d707cf.jpeg "ElasticCC: The new Elasticsearch Java Client: getting started and behind the scenes") ](https://www.youtube.com/watch?v=61MQoSFt2j0)

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [November 18, 2022, 2:26pm UTC](https://discuss.elastic.co/t/clarification-on-base-dependencies/319146/2 "2022-11-18T14:26:08Z")

</div>

No, es-hadoop does not use the java client. It has its own [REST client implementation](https://github.com/elastic/elasticsearch-hadoop/blob/main/mr/src/main/java/org/elasticsearch/hadoop/rest/RestClient.java). The main reason is that it predates the java client and there has not been an effort to update it yet.

---

<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:** [December 16, 2022, 2:26pm UTC](https://discuss.elastic.co/t/clarification-on-base-dependencies/319146/3 "2022-12-16T14:26:33Z")

</div>

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