DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
| Table of Contents |
|---|
Status
Current state: Voting in progressAccepted
Discussion thread: here
Vote thread: here
...
| Code Block |
|---|
# Config for Kafka Connect
config.providers=directory
config.providers.directory.class=org.apache.kafka.common.config.provider.DirectoryConfigProvider
# Config for Kafka Convertor
schema.content=${directory:/schema:schema.json} |
KIP-993: Allow restricting files accessed by File and Directory ConfigProviders will allow users to restrict what files to be used.
While using Connect REST API to create Connector with Schema Configuration, we will need include escape sequences in the schema.content field since REST API payload needs to be a JSON.
For Example
| Code Block |
|---|
{ "name": "api-file-source-json", "config": { "value.converter.schemas.enable": true, "value.converter.schema.content": "{\"type\": \"struct\", \"fields\": [{ \"field\": \"id\", \"type\": \"string\", \"optional\": false },{ \"field\": \"name\", \"type\": \"string\", \"optional\": false }]}" } } |
Proposed Changes
Functional changes will be made to org.apache.kafka.connect.json.JsonConverter configure
...