-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support for HTTP transport (#13)
QuestDB ILP client supports HTTP transport in versions 7.4.0+ thus the client dependency version is updated too. Configuration The connector now supports client configuration strings as documented in the client documentation. Set the client configuration string under the key client.conf.string. Example: ```json { "name": "my-connector", "config": { "tasks.max": "4", "connector.class": "io.questdb.kafka.QuestDBSinkConnector", "key.converter": "org.apache.kafka.connect.storage.StringConverter", "value.converter": "org.apache.kafka.connect.json.JsonConverter", "topics": "mytopic", "value.converter.schemas.enable": "false", "timestamp.field.name": "ts", "timestamp.units": "nanos", "client.conf.string": "http::addr=questdb:9000;auto_flush_rows=10000;auto_flush_interval=1200000;retry_timeout=60000;" } } ``` The old client configuration keys (host, username, token, tls, etc) are considered deprecated and should not be used. They cannot be used together with the client configuration string. Kafka-specific configuration options (timestamp.units, topics, etc.) are not part of the client configuration string and still have their own keys. See the example above. Advantages of the HTTP transport The HTTP transport implements proper error reporting, automatic retries for recoverable errors and simpler configuration. When combined with QuestDB server deduplications it allows Exactly-Once semantics. Known Issues Due to a bug in QuestDB client 7.4.0 it's recommended to disable interval-based flushes. See questdb/questdb#4372 for details. This will be resolved in the next version.
- Loading branch information
Showing
25 changed files
with
497 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
connector/src/main/java/io/questdb/kafka/EmptyOffsetTracker.java
This file was deleted.
Oops, something went wrong.
122 changes: 0 additions & 122 deletions
122
connector/src/main/java/io/questdb/kafka/MultiOffsetTracker.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
connector/src/main/java/io/questdb/kafka/OffsetTracker.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.