# Getting 'No Node Available Exception' while using TrasnsportClient of ElasticSearch

**URL:** <https://discuss.elastic.co/t/getting-no-node-available-exception-while-using-trasnsportclient-of-elasticsearch/17582>\
**Category:** Elasticsearch\
**Created:** [May 19, 2014, 8:52am UTC](https://discuss.elastic.co/t/getting-no-node-available-exception-while-using-trasnsportclient-of-elasticsearch/17582 "2014-05-19T08:52:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prashanth\_M](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@Prashanth\_M](https://discuss.elastic.co/u/Prashanth_M)\
**Post date:** [May 19, 2014, 8:52am UTC](https://discuss.elastic.co/t/getting-no-node-available-exception-while-using-trasnsportclient-of-elasticsearch/17582/1 "2014-05-19T08:52:22Z")

</div>

Hi,

I am pretty new to Elastic Search. I have following things in my code OR  
looking for solution to 'No Node Available Exception' problem in the  
following scenario.

1. We have ES running on System with 1 Node and 1 Cluster
2. We have 4 indexes on ES. (Each index has different type of data,  
Example: Customer Preference / Customer Address / Customer Interests /  
Customer Basic Details)
3. We have WebApplication (as webservice) running on Tomcat.
4. We are calling webservice method as Controller's. -This will receive  
request from consumers in the form JSON data.
5. Based on that data(Example: If consumers asks for Customer Preference  
for given customer Id then we go to 'Customer Preferences' index) we will  
go to service(using Spring) layers.
6. In each of the service layer we get TransportClient instance in  
SingleTon object and wait for its response and return the result to  
Controller.

In a Scenario if consumer asks for all 4 types of data for a Customer, and  
if we ask first for preference, address, interests and basic details in  
sequence. It works well. But this adds to performance. So we want these  
things to process and get data parallel.

So we used Spring Task Executors to do this parallel. In that case we get  
data from one index and others will get 'No Node Available Exception'. Its  
pretty random to on say on which data we get this problem.

Pleas help me here.

Thanks in advance!....

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3ea880bf-c0f0-44bf-81e8-8b9f5529483c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ea880bf-c0f0-44bf-81e8-8b9f5529483c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:28am UTC](https://discuss.elastic.co/t/getting-no-node-available-exception-while-using-trasnsportclient-of-elasticsearch/17582/2 "2017-07-06T01:28:34Z")

</div>


