# Org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection error (check network and/or proxy settings)- all nodes failed

**URL:** <https://discuss.elastic.co/t/org-elasticsearch-hadoop-rest-eshadoopnonodesleftexception-connection-error-check-network-and-or-proxy-settings-all-nodes-failed/23288>\
**Category:** Elasticsearch\
**Created:** [April 17, 2015, 8:50am UTC](https://discuss.elastic.co/t/org-elasticsearch-hadoop-rest-eshadoopnonodesleftexception-connection-error-check-network-and-or-proxy-settings-all-nodes-failed/23288 "2015-04-17T08:50:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guoyiqincn](https://avatars.discourse-cdn.com/v4/letter/g/ccd318/32.png) [@guoyiqincn](https://discuss.elastic.co/u/guoyiqincn)\
**Post date:** [April 17, 2015, 8:50am UTC](https://discuss.elastic.co/t/org-elasticsearch-hadoop-rest-eshadoopnonodesleftexception-connection-error-check-network-and-or-proxy-settings-all-nodes-failed/23288/1 "2015-04-17T08:50:40Z")

</div>

\*my spark job running \*  
_this is a error_

_org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection  
error (check network and/or proxy settings)- all nodes failed_

\*my code \*  
_val conf = new SparkConf()_  
_conf.set("es.nodes", "1.1.1.1")_

_datainfo.saveJsonToEs("index/type")_

_i need help_

_thanks_

--  
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/6bc46afa-c058-4f23-9256-39555c574a70%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6bc46afa-c058-4f23-9256-39555c574a70%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [April 17, 2015, 1:07pm UTC](https://discuss.elastic.co/t/org-elasticsearch-hadoop-rest-eshadoopnonodesleftexception-connection-error-check-network-and-or-proxy-settings-all-nodes-failed/23288/2 "2015-04-17T13:07:37Z")

</div>

The error should be self explanatory - Elasticsearch cluster is not  
accessible. Make sure that 1.1.1.1 is accessible from the Spark  
cluster and that the REST interface is enabled and exposed.

On Fri, Apr 17, 2015 at 11:50 AM, [guoyiqincn@gmail.com](mailto:guoyiqincn@gmail.com) wrote:

> my spark job running  
> this is a error  
> org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection error  
> (check network and/or proxy settings)- all nodes failed
> 
> my code  
> val conf = new SparkConf()  
> conf.set("es.nodes", "1.1.1.1")
> 
> datainfo.saveJsonToEs("index/type")
> 
> i need help
> 
> thanks
> 
> --  
> 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/6bc46afa-c058-4f23-9256-39555c574a70%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6bc46afa-c058-4f23-9256-39555c574a70%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAJogdmeRjO4\_gNVkL4rh5-%3DUrJepUCi0QF0fTFvsfcYsiE16vA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJogdmeRjO4_gNVkL4rh5-%3DUrJepUCi0QF0fTFvsfcYsiE16vA%40mail.gmail.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, 12:19am UTC](https://discuss.elastic.co/t/org-elasticsearch-hadoop-rest-eshadoopnonodesleftexception-connection-error-check-network-and-or-proxy-settings-all-nodes-failed/23288/3 "2017-07-06T00:19:03Z")

</div>


