Hi,
I upgraded ES server on AWS from 6.8 to 7.10 (this is the latest offered for now). Until now I have been using Restclient 7.17.x. After upgrading the server I started getting -
Note: This works fine on docker locally with 7.10.1
org.elasticsearch.ElasticsearchException: Invalid or missing build flavor [oss]
at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2701)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
at org.elasticsearch.client.RestHighLevelClient.bulk(RestHighLevelClient.java:620)
GET /
for above is
{
"name" : "omitted",
"cluster_name" : "omitted",
"cluster_uuid" : "omitted",
"version" : {
"number" : "7.10.2",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "unknown",
"build_date" : "2023-12-20T06:48:37.663499Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
To get around this I tried to switch to using Java API client 7.17.21
as Elasticsearch client is deprecated. But that gave me header error on Docker
co.elastic.clients.transport.TransportException:
node: http://aws-local:9300/, status: 200,
[es/bulk] Missing [X-Elastic-Product] header.
Please check that you are connecting to an Elasticsearch instance, and that any networking filters are preserving that header.
GET /
for above is
{
"name" : "63bf0fa45556",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "w67XjXmoQ72qyj0TPB9ZjQ",
"version" : {
"number" : "7.10.1",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "1c34507e66d7db1211f66f3513706fdf548736aa",
"build_date" : "2020-12-05T01:00:33.671820Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
- Is Java API Client supported with server version of
7.10
? - If no then what are my options for this server upgrade?