Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elgca/kafka-jslt-tansform
基于jstl的kafka connect的transform。使用jstl处理kafka json数据
https://github.com/elgca/kafka-jslt-tansform
json kafka kafka-connect kafka-connector transform
Last synced: about 1 month ago
JSON representation
基于jstl的kafka connect的transform。使用jstl处理kafka json数据
- Host: GitHub
- URL: https://github.com/elgca/kafka-jslt-tansform
- Owner: elgca
- License: apache-2.0
- Created: 2019-03-29T05:30:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T07:46:08.000Z (almost 6 years ago)
- Last Synced: 2024-10-15T02:05:34.593Z (3 months ago)
- Topics: json, kafka, kafka-connect, kafka-connector, transform
- Language: Java
- Size: 19.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kafka-jslt-tansform
基于jstl的kafka connect的transform。使用jstl处理kafka json数据
JSLT是对JSON进行查询和转换语言,这个项目将其应用与kafka connect的transform。JSLT GitHub: https://github.com/schibsted/jslt
# elgca.kafka.connect.JSLTTransformation
同`ExtractField`一样,`JSLTTransformation`可以分别对`key`和`value`使用
| class | type |
| --- | --- |
|`elgca.kafka.connect.JSLTTransformation$Key`| key|
|`elgca.kafka.connect.JSLTTransformation$Value`| value|配置参数
| name | comment |
| --- | --- |
| `script.url` | 通过url获取`jslt`脚本,不能与`script.text`同时使用 |
| `script.text` | `jslt`脚本,不能与`script.url`同时使用 |
| `charset` | 编码,脚本编码和以byte[]形式接受数据的string编码 |# 功能更新
支持对Map, Struct, String, byte[] 的输入处理,
输出类型改String为Map对于Source可以配合`org.apache.kafka.connect.json.JsonConverter`输出Json至kafka,
之前只能使用`StringConverter`