# Elastic 5.1.1 bulk java api not working on remote server

**URL:** <https://discuss.elastic.co/t/elastic-5-1-1-bulk-java-api-not-working-on-remote-server/86970>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [May 24, 2017, 12:20pm UTC](https://discuss.elastic.co/t/elastic-5-1-1-bulk-java-api-not-working-on-remote-server/86970 "2017-05-24T12:20:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtilwani](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@rtilwani](https://discuss.elastic.co/u/rtilwani)\
**Post date:** [May 24, 2017, 12:20pm UTC](https://discuss.elastic.co/t/elastic-5-1-1-bulk-java-api-not-working-on-remote-server/86970/1 "2017-05-24T12:20:41Z")

</div>

Hello,

I am trying to index documents from hive to elasticsearch. I am using java bulk api. I am able to achieve this on local host but not on the remote server. I do not get any error on remote host and none of the document is getting indexed. It is apache tomcat and is using java 1.8. The elastic version is 5.1.1. The only error that I can see is shown below:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/d/0/d07c24d0d7771a36cb06fc3ebeae85dea22de36e.JPG)

I am not sure if this error is the cause because the code works fine on localhost. Thanks a lot. Looking forward to your help.

---

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [May 25, 2017, 5:38pm UTC](https://discuss.elastic.co/t/elastic-5-1-1-bulk-java-api-not-working-on-remote-server/86970/2 "2017-05-25T17:38:39Z")

</div>

This looks like you are using the Transport client for Elasticsearch and not the ES-Hadoop libraries. If that is the case, then you will need to use the appropriate transport client version for the version of your cluster.

---

<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:** [June 22, 2017, 5:38pm UTC](https://discuss.elastic.co/t/elastic-5-1-1-bulk-java-api-not-working-on-remote-server/86970/3 "2017-06-22T17:38:46Z")

</div>

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