# ES 5.4 transport client support missing (unable to write from spark)

**URL:** <https://discuss.elastic.co/t/es-5-4-transport-client-support-missing-unable-to-write-from-spark/88724>\
**Category:** Elasticsearch\
**Created:** [June 8, 2017, 2:23pm UTC](https://discuss.elastic.co/t/es-5-4-transport-client-support-missing-unable-to-write-from-spark/88724 "2017-06-08T14:23:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stsh](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@stsh](https://discuss.elastic.co/u/stsh)\
**Post date:** [June 8, 2017, 2:23pm UTC](https://discuss.elastic.co/t/es-5-4-transport-client-support-missing-unable-to-write-from-spark/88724/1 "2017-06-08T14:23:24Z")

</div>

Our pipeline has been using Apache spark to write into elasticsearch from upstream.  
The transport client was being used until ES version-2.4  
We are now trying to upgrade to ES 5.4 and are using the maven dependency for version 5.4.0 and 5.4.1 (we understand that transport client is now a different artifact)

According elastic search client java documentation link: [https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.4/transport-client.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.4/transport-client.html)  
Class **PreBuiltTransportClient** needs to be implemented to build transport client. Can the code from GitHub here  
[https://github.com/elastic/elasticsearch/tree/f8a48badcf4293396925308962c7d1bd2a357845](https://github.com/elastic/elasticsearch/tree/f8a48badcf4293396925308962c7d1bd2a357845)  
be used or do you have an example?

---

<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, 2:23pm UTC](https://discuss.elastic.co/t/es-5-4-transport-client-support-missing-unable-to-write-from-spark/88724/2 "2017-07-06T14:23:26Z")

</div>

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