Added Alias support and external resource feature changes #865
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The existing Elasticsearch Sink Connector only supports auto creation of indexes and datastreams based on Kafka topic name. This approach enforces connector-defined naming conventions and limits customers from integrating with pre-existing Elasticsearch resources. Additionally, the connector previously lacked support for writing to aliases.
Solution (INIT-8745)
This PR introduces a new feature: External Topic to Resource Mappings. This enhancement allows users to explicitly map Kafka topics to existing Elasticsearch resources—such as indices, data streams, and aliases (both index and data stream aliases).
New Configuration Parameters:
external.resource.usage
INDEX
,DATASTREAM
,ALIAS_INDEX
,ALIAS_DATASTREAM
,DISABLED
topic.to.external.resource.mapping
""
orders:index-orders
,logs:logs-ds
).Additional Notes:
Does this solution apply anywhere else?
If yes, where?
Test Strategy
Testing done:
Scenarios Validated:
Release Plan
15.1.x
external.resource.usage=DISABLED
).devel
environment by deploying the new image to an existing production-exposed connector.