Missing required property on Elastic Cluster Health check

p4paul
Wed, 04 Dec 2024 11:03:52 +0000
Elasticsearch

Very similar to Error: using Java API calling ElasticsearchClient method healthReport()

Updating the Java client (from 8.15.3) to elasticsearch-java:8.16.1 and calling...

HealthResponse healthModel = getEsClient().cluster().health();

throws...

co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'HealthResponse.unassignedPrimaryShards'

The Elasticsearch instance is old 7.x version (but still supported)

6 posts - 2 participants