Skip to content

Using spring-boot-starter-web jar to connect elastic search is causing issue NoNodeAvailableException [DATAES-339] #913

@spring-projects-issues

Description

@spring-projects-issues

Sagar Mummidivarapu opened DATAES-339 and commented

I am using spring-boot-starter-web jar in my pom to connect Elastic Search using ElasticSearchRepository<T,T> but getting exception at commandLineRunner

Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{127.0.0.1:9300}]

I am using following versions:
Spring Boot Version: 1.5.2 (spring boot starter parent)
Elastic Search : 5.2.2

Same code is working if I point to Elastic Search version 2.4.4

  1. Any insight why the "spring-boot-starter-data-elasticsearch" not working with latest elastic versions?
  2. In future every time we upgrade to latest version of ES, should we wait for latest version of "spring-boot-starter-data-elasticsearch" that is compatible?
  3. Exception like "NoNodeAvailableException" is not clear when the real issue is with ES version compatibility.

Please address these issues at the earliest and highly appreciated for the prompted response.

Also, Please find the attached project. (Excluded target folder due to size restriction in JIRA)


Attachments:

0 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions