Spring-boot: Healthcheck fails with Elasticsearch 2.2.0

Created on 8 Feb 2016  路  1Comment  路  Source: spring-projects/spring-boot

In Elasticsearch 2.2.0, ClusterHealthStatus has been moved to package org.elasticsearch.cluster.health which breaks the health check indicator:

java.lang.ClassNotFoundException: org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus
2/8/2016 6:15:05 PM at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_66]
2/8/2016 6:15:05 PM at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_66]
2/8/2016 6:15:05 PM at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:178) ~[app.jar!/:na]
2/8/2016 6:15:05 PM at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:142) ~[app.jar!/:na]
2/8/2016 6:15:05 PM at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_66]
2/8/2016 6:15:05 PM at org.springframework.boot.actuate.health.ElasticsearchHealthIndicator$1.(ElasticsearchHealthIndicator.java:54) ~[spring-boot-actuator-1.3.2.RELEASE.jar!/:1.3.2.RELEASE]

A simple upgrade should do the trick :+1:

Most helpful comment

Spring Boot doesn't support Elasticsearch 2.x at the moment. We'll upgrade to 2.x as and when we're using a version of Spring Data Elasticsearch which supports 2.x. In the meantime, the health indicator can be disabled by setting management.health.elasticsearch.enabled=false.

>All comments

Spring Boot doesn't support Elasticsearch 2.x at the moment. We'll upgrade to 2.x as and when we're using a version of Spring Data Elasticsearch which supports 2.x. In the meantime, the health indicator can be disabled by setting management.health.elasticsearch.enabled=false.

Was this page helpful?
0 / 5 - 0 ratings