# NoNodeAvailableException error with Hadoop

**URL:** https://discuss.elastic.co/t/nonodeavailableexception-error-with-hadoop/95720
**Category:** Elasticsearch
**Tags:** es-hadoop
**Created:** [August 3, 2017, 1:21pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-error-with-hadoop/95720 "2017-08-03T13:21:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Songling\_Lau](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Songling\_Lau](https://discuss.elastic.co/u/Songling_Lau)
#### Post date: [August 3, 2017, 1:21pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-error-with-hadoop/95720/1 "2017-08-03T13:21:18Z")

</div>

There is a wired problem that when I run my jar using java command,the code can run without any error.But it throws NoNodeAvailableException when I use hadoop or spark-submit.I'v checked all the configurations.Someone tell me what I missed?

Details:  
If I run the jar like:  
**java -jar es-1.0-SNAPSHOT.jar 6 2016 11 21 elasticsearch wireless**  
It fetches hits successfully.

[hadoop@hadoop10 ~]$ **hadoop jar es-1.0-SNAPSHOT.jar 1 2016 1 1 elasticsearch wireless**  
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.  
Exception in thread "main" NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{89xrLH2hRjG6u9aViy9GVQ}{hadoop10}{192.168.100.60:9300}, {#transport#-2}{SMjopmY2TTuuW5fS0CYMcA}{hadoop5}{192.168.100.55:9300}]]  
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:348)  
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:246)  
at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59)  
at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:366)  
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54)  
at ES.Search.search(Search.java:53)  
at test.main(test.java:9)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)  
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

---

<div class="post-metadata">

### Author: ![Songling\_Lau](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Songling\_Lau](https://discuss.elastic.co/u/Songling_Lau)
#### Post date: [August 3, 2017, 1:28pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-error-with-hadoop/95720/2 "2017-08-03T13:28:03Z")

</div>

I even changed "client.transport.sniff" to false.There are the client connecting codes:  
Settings settings = Settings.builder()  
.put("[cluster.name](http://cluster.name)", INDXInfo.CLUSTER)  
.put("client.transport.sniff", false)  
.build();  
client = new PreBuiltTransportClient(settings)  
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(INDXInfo.HOST), INDXInfo.PORT))  
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(INDXInfo.HOST1), INDXInfo.PORT));

---

<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: [August 3, 2017, 8:05pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-error-with-hadoop/95720/3 "2017-08-03T20:05:05Z")

</div>

@Songling_Lau Could you increase the logging level of the elasticsearch packages and post their output here? This doesn't seem to be related to ES-Hadoop specifically, but I'll try and take a look at it if you can provide any logs.

---

<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: [August 31, 2017, 8:05pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-error-with-hadoop/95720/4 "2017-08-31T20:05:09Z")

</div>

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