I'm getting these sudden no node available exceptions and they continue to
persist over multiple calls untill the elastic search server or apache
tomcat is restarted. Below is how i'm getting the client and running the
query. I've just kept the relevant things in the code below.
Pls let me know if anyone has faced this issue. Apparently there are a lot
of posts related to this issue but none of them gave me a clear idea.
private static Client getClient(UserRequest userRequest,Map<String, String>credentialMap
if(null==client) // client is a static instance variable
Settings settings = ImmutableSettings.settingsBuilder()
client = new TransportClient(settings).addTransportAddress(new
protected SearchResponse runJavaApiQuery(SearchRequestBuilder srb)
protected SearchRequestBuilder getSearchRequestBuilder(QueryBuilderqueryBuilder
, UserRequest userRequest,Map<String, String> credentialMap)
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.