Added ability to delete and update records in ElasticSearch sink connector#7329
Added ability to delete and update records in ElasticSearch sink connector#7329alim-zanibekov wants to merge 2 commits intoapache:masterfrom
Conversation
codelipenghui
left a comment
There was a problem hiding this comment.
Would you please help add documentation for the new feature at https://pulsar.apache.org/docs/en/io-elasticsearch-sink/
| private CredentialsProvider credentialsProvider; | ||
| private ElasticSearchConfig elasticSearchConfig; | ||
|
|
||
| protected static final String ACTION = "ACTION"; |
There was a problem hiding this comment.
It's better to add a prefix for the property name e.g. (ELASTCSEARCH_ACTION).
Yes, but I will really need an example of documentation related to message Schema in topic, e.g. there is no additional documentation about the almost identical feature https://github.com/apache/pulsar/blob/master/site2/docs/io-jdbc-sink.md, sources of this feature - https://github.com/apache/pulsar/blob/master/pulsar-io/jdbc/core/src/main/java/org/apache/pulsar/io/jdbc/JdbcAbstractSink.java If there is no such an example of documentation, I can make it up by myself. But I'm not well familiar with the Pulsar terminology |
|
@codelipenghui can you review this again? |
|
This patch is probably superseded by the recent changes in the ElasticSearch connector. |
|
@alim-zanibekov:Thanks for your contribution. For this PR, do we need to update docs? |
|
Closed as stale and conflict. Please rebase and submit a new patch if it's still relevant. |
Motivation
I need to use ElasticSearch via Pulsar as a database but not as a dump of logs that’s why I implemented the possibility to update and delete records, as well as to set id when creating a record
Modifications
Record processing
Tests
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
Documentation