Repository navigation
[pulsar-io] Elasticsearch sink support for Elastic 8 - #14805
Conversation
|
/pulsarbot rerun-failure-checks |
|
/pulsarbot rerun-failure-checks |
|
/pulsarbot rerun-failure-checks |
|
the failing check is not related to this pull |
17195ad to
440595a
Compare
|
/pulsarbot rerun-failure-checks |
|
@lhotari could you please explain to me how to rerun the failed job? I can't find the button |
The workflow needs to finish before it's possible to rerun failed jobs. That seems to be a limitation compared to the previous solution. The button to rerun failed jobs is only visible to Pulsar committers. For others, it's possible to use |
|
/pulsarbot rerun-failure-checks |
…-client (apache#14805) (cherry picked from commit 4574052)
Motivation
OpenSearch high-level rest api client does not support Elastic 8 servers.
There are some hardcoded request fields that are no longer supported in ES 8 and the server throws an error. (Full guide). For the ES Sink usage the first problem I found was about createIndex request for the field "type" (
include_type_namein request,typein responses).Elastic has a guide to softly migrate to newer installation using custom http headers.
We are using OpenSearch client which doesn't support
"application/vnd.elasticsearch+json;compatible-with=7"content-type.The best solution is to migrate from high-level rest client to the official Elastic java client which is Apache 2 licensed.
See the License page
Elastic java-client is not compatible with OpenSearch.
The solution is to keep both the client (opensearch high-level and elastic java-client) and use the proper one based on the target server.
Modifications
compatibilityModethat accepts:RestClientwith the two different implementations.Verifying this change
This change is already covered by existing tests, such as (please describe tests).
pulsar-io/elastic-searchDocumentation
doc