# Getting " failed to connect to node \[{#transport#-1}{nE-IOaK-SLWdBf7f80Yo2g}{localhost}{127.0.0.1:9300}\], ignoring..."

**URL:** <https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359>\
**Category:** Elasticsearch\
**Created:** [July 13, 2019, 5:43pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359 "2019-07-13T17:43:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinitp](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vinitp](https://discuss.elastic.co/u/vinitp)\
**Post date:** [July 13, 2019, 5:43pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/1 "2019-07-13T17:43:10Z")

</div>

I get this error when I try to connect to the ElasticSearch v7.2. Here is my setting in elastic.yml file

cluster.name: eml  
node.name: eml  
path.logs: d:/temp/logs/elastic  
http.port: 9200

Here is my application.properties settings:

spring.data.elasticsearch.cluster-name = eml  
spring.data.elasticsearch.cluster-nodes=localhost:9300  
elasticsearch.host = localhost  
elasticsearch.port = 9200  
elasticsearch.username=  
elasticsearch.password=  
elasticsearch.clustername = eml

I use Spring Boot to connect. but also use HighLevelClient API

Here is my code to configure HighLevel Client.

@Configuration  
@Slf4j  
public class ElasticHighLevelClientConfig {

```
@Value("${elasticsearch.host}")
private String host;

@Value("${elasticsearch.port}")
private int port;

@Value("${elasticsearch.username}")
private String userName;

@Value("${elasticsearch.password}")
private String password;

@Bean(name = "myEsClient", destroyMethod = "close")
public RestHighLevelClient myRestClient() {
	final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
	credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(userName, password));
	RestClientBuilder builder = RestClient.builder(new HttpHost(host, port)).setHttpClientConfigCallback(
			httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));
	RestHighLevelClient client = new RestHighLevelClient(builder);
	return client;

}

```

}

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [July 19, 2019, 4:12am UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/2 "2019-07-19T04:12:58Z")

</div>

Can you please post here the full error message with complete stacktrace?

---

<div class="post-metadata">

**Author:** ![vinitp](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vinitp](https://discuss.elastic.co/u/vinitp)\
**Post date:** [July 19, 2019, 1:13pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/3 "2019-07-19T13:13:44Z")

</div>

Thanks Thiago for taking a look at my issue. Interestingly, I was able to resolve the issue by downgrading ES from 7.2 to 6.8. It seems the current Spring ElasticSearch with Spring Boot 2.1 does not support ES 7.2.

I will be interested to find out if anybody runs ES 7.2 with Spring Boot 2.1.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 19, 2019, 1:27pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/4 "2019-07-19T13:27:23Z")

</div>

When using springboot with  
elasticsearch, you need to be explicit with some transitive dependencies as SpringBoot declares a version 6.4...

Basically you can put this in your `pom.xml`:

```auto
<properties>
  <elasticsearch.version>7.2.0<elasticsearch.version>
</properties>

```

See documentation here: [“How-to” Guides](https://docs.spring.io/spring-boot/docs/current/reference/html/howto-build.html#howto-customize-dependency-versions)

> I will be interested to find out if anybody runs ES 7.2 with Spring Boot 2.1.

I do. Here: [GitHub - dadoonet/legacy-search at 06-fuzziness](https://github.com/dadoonet/legacy-search/tree/06-fuzziness)

---

<div class="post-metadata">

**Author:** ![vinitp](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vinitp](https://discuss.elastic.co/u/vinitp)\
**Post date:** [July 19, 2019, 1:47pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/5 "2019-07-19T13:47:11Z")

</div>

Thank you David. I will make the change as you suggested and let you know the outcome. Once again I appreciate your response.

---

<div class="post-metadata">

**Author:** ![vinitp](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vinitp](https://discuss.elastic.co/u/vinitp)\
**Post date:** [July 22, 2019, 3:42pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/6 "2019-07-22T15:42:29Z")

</div>

I updated my pom.xml by adding:  
\<elasticsearch.version\>7.2.0\</elasticsearch.version\>  
\<beyonder.version\>7.0\</beyonder.version\>

---

<div class="post-metadata">

**Author:** ![vinitp](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vinitp](https://discuss.elastic.co/u/vinitp)\
**Post date:** [July 22, 2019, 3:45pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/7 "2019-07-22T15:45:30Z")

</div>

I updated my pom.xml by adding the following properties:  
\<elasticsearch.version\>7.2.0\</elasticsearch.version\>  
\<beyonder.version\>7.0\</beyonder.version\>

and the following dependencies:

```
	 <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-high-level-client</artifactId>
        <version>${elasticsearch.version}</version>
    </dependency>
    <!-- this is now needed because of spring parent which forces a 6.4 version -->
    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-client</artifactId>
        <version>${elasticsearch.version}</version>
    </dependency>
    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch</artifactId>
        <version>${elasticsearch.version}</version>
    </dependency>
    <dependency>
        <groupId>fr.pilato.elasticsearch</groupId>
        <artifactId>elasticsearch-beyonder</artifactId>
        <version>${beyonder.version}</version>
    </dependency>

```

Now, I get this error  
Archive for required library: 'D:/Users/vpatel/.m2/repository/org/elasticsearch/client/transport/7.2.0/transport-7.2.0.jar' in project 'EmployerWebService' cannot be read or is not a valid ZIP file"

I also deleted all files/folder under "D:/Users/vpatel/.m2/repository/org/elasticsearch/client/transport/". But I still get this error.

---

<div class="post-metadata">

**Author:** ![SenalChen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senalchen/32/51490_2.png) [@SenalChen](https://discuss.elastic.co/u/SenalChen)\
**Post date:** [July 22, 2019, 3:49pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/8 "2019-07-22T15:49:28Z")

</div>

how about synchronized the maven?

---

<div class="post-metadata">

**Author:** ![vinitp](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vinitp](https://discuss.elastic.co/u/vinitp)\
**Post date:** [July 22, 2019, 3:50pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/9 "2019-07-22T15:50:45Z")

</div>

Yes. I did "Update Project" after making the change in the POM.

---

<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 19, 2019, 3:50pm UTC](https://discuss.elastic.co/t/getting-failed-to-connect-to-node-transport-1-ne-ioak-slwdbf7f80yo2g-localhost-127-0-0-1-9300-ignoring/190359/10 "2019-08-19T15:50:51Z")

</div>

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