kafka-connect-transform-common | Common Transforms for Kafka Connect | Pub Sub library
kandi X-RAY | kafka-connect-transform-common Summary
kandi X-RAY | kafka-connect-transform-common Summary
Documentation | Confluent Hub. This project contains common transformations for every day use cases with Kafka Connect.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process the given schema and value
- Process a map value
- Transforms a schema into a timestamp value
- Transforms input into output schema
- Returns state for a given schema
- Extract XPath and value
- Helper method to extract a XPath string from a data object
- Process inputSchema and outputSchema
- Process input field
- Build schema
- Returns a list of supported header types
- Process the input
- Process map
- Applies the debug information
- Returns the output schema and the output schema
- Process the inputSchema and return a struct
- Create a schema for a record
- Create the output schema for the given input record
- Process the given input schema
- Configures the output
- Process the input schema
- Process an input
- Process an output field
- Configures the converter
kafka-connect-transform-common Key Features
kafka-connect-transform-common Examples and Code Snippets
Community Discussions
Trending Discussions on kafka-connect-transform-common
QUESTION
I am getting up to speed here with Kafka Connect. Trying to use Kafka Connect Elasticsearch Service sink connector to move our data from Kafka to Elasticsearch. I have a processing stream that looks like this:
File record from s3->custom processing from source application which publishes to ->kafka topic->Kafka connect->Elastic Search
This works for the scenario of create/update. However we want to handle the delete scenario for the file. Our application publishes an event for delete action and sets that as part of the header value in the Kafka message. Instead of updating the document in elastic with this delete action info, we would like to delete the document itself.
How we can achieve this using Kafka Connect to read this header value and issue a delete of document for the given key from the Elastic?
Thanks for your help in advance.
Regards, Vikas
EDITED: Example of message I am trying to transform:
...ANSWER
Answered 2021-Apr-21 at 01:45I was able to achieve this. Ended up writing a custom SMT. Using the SMT I had access to the connect record including the header and the value. So I just read the header values on by one and when encountered the value I was interested in, I set the connect record's value to null. In addition to this Kafka Connect also exposes below parameter:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kafka-connect-transform-common
You can use kafka-connect-transform-common like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the kafka-connect-transform-common component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page