# Connection time out using ES -Hadoop

**URL:** <https://discuss.elastic.co/t/connection-time-out-using-es-hadoop/44108>\
**Category:** Elasticsearch\
**Created:** [March 11, 2016, 4:53am UTC](https://discuss.elastic.co/t/connection-time-out-using-es-hadoop/44108 "2016-03-11T04:53:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apanimesh061](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apanimesh061/32/927_2.png) [@apanimesh061](https://discuss.elastic.co/u/apanimesh061)\
**Post date:** [March 11, 2016, 4:53am UTC](https://discuss.elastic.co/t/connection-time-out-using-es-hadoop/44108/1 "2016-03-11T04:53:26Z")

</div>

I am running the application on a VM and ES is running on host OS on `localhost:9220` and virtual accesses the host OS on `10.0.2.2`.

I specified `es.nodes` as `10.0.2.2` and `es.port` as `9220` as ES is running on this address. But the application gives a connection timeout error. What could be the reason?

The full code is available [here](https://github.com/apanimesh061/SparkTest/tree/master/src/main/java/TopicApp).

---

<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 5, 2017, 11:09pm UTC](https://discuss.elastic.co/t/connection-time-out-using-es-hadoop/44108/2 "2017-07-05T23:09:16Z")

</div>

Closed on July 5, 2017, 11:09pm UTC


