Custom Kafka Connect add-ons:
- Connectors
- Converters
- SMTs
- org.hifly.kafka.mongo.CustomMongoSinkConnector - Custom Sink connector for MongoDB implementing upsert operations and deletes.
Package:
cd mongo-custom-connector
mvn clean compile assembly:singlecd mongo-custom-connector
mvn clean test- org.hifly.kafka.OracleRawToBsonKeyConverter - Convert a byte [] to Oracle RAW data type.
- org.hifly.kafka.ByteArrayAndStringConverter - pass through for byte array schema type and string schema type.
- org.hifly.kafka.smt.JsonKeyToValue - Add message key to message value as a new field.
- org.hifly.kafka.smt.ExplodeJsonString - Create a Struct for a JSON Field. Extract JSON value from a massage field and copy the JSON fields in the output message as top-level fields
Install oracle jdbc driver in maven local repo:
mvn install:install-file -Dfile=ojdbc10.jar -DgroupId=com.oracle -DartifactId=ojdbc10 -Dversion=19.3 -Dpackaging=jarPackage:
mvn clean compile assembly:singlemvn clean test