questdb / kafka-questdb-connector Goto Github PK
View Code? Open in Web Editor NEWQuestDB connector for Kafka.
Home Page: https://github.com/questdb/kafka-questdb-connector/releases/
License: Apache License 2.0
QuestDB connector for Kafka.
Home Page: https://github.com/questdb/kafka-questdb-connector/releases/
License: Apache License 2.0
Hello all,
When I try to follow the docs here, I concluded that example json configuration:
{
"name": "questdb-sink1",
"config": {
"connector.class": "io.questdb.kafka.QuestDBSinkConnector",
"host": "localhost:9009",
"topics": "example",
"table": "example_table",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"value.converter": "org.apache.kafka.connect.json.JsonConverter",
"include.key": "false"
}
}
However, this one throws me that error within Kafka Connect:
[2022-11-09 20:53:03,407] INFO EnrichedConnectorConfig values:
config.action.reload = restart
connector.class = io.questdb.kafka.QuestDBSinkConnector
errors.log.enable = false
errors.log.include.messages = false
errors.retry.delay.max.ms = 60000
errors.retry.timeout = 0
errors.tolerance = none
header.converter = null
key.converter = class org.apache.kafka.connect.storage.StringConverter
name = questdb-sink1
predicates = []
tasks.max = 1
transforms = []
value.converter = class org.apache.kafka.connect.json.JsonConverter
(org.apache.kafka.connect.runtime.ConnectorConfig$EnrichedConnectorConfig)
[2022-11-09 20:53:03,409] ERROR Failed to start task questdb-sink1-0 (org.apache.kafka.connect.runtime.Worker)
java.lang.NoClassDefFoundError: io/questdb/client/Sender
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:735)
at org.apache.kafka.common.config.ConfigDef.parseValue(ConfigDef.java:490)
at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:483)
at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:113)
at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:146)
at org.apache.kafka.connect.runtime.TaskConfig.<init>(TaskConfig.java:51)
at org.apache.kafka.connect.runtime.Worker.startTask(Worker.java:510)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startTask(DistributedHerder.java:1421)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.lambda$getTaskStartingCallable$22(DistributedHerder.java:1434)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ClassNotFoundException: io.questdb.client.Sender
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at org.apache.kafka.connect.runtime.isolation.PluginClassLoader.loadClass(PluginClassLoader.java:103)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
�
... 15 more
[2022-11-09 20:53:03,413] INFO [Worker clientId=connect-1, groupId=compose-connect-group] Finished starting connectors and tasks (org.apache.kafka.connect.runtime.distributed.DistributedHerder)
The base docker image I use for Kafka Connect is: confluentinc/cp-kafka-connect:7.2.2
. Can someone help me out?
I'm a bit lost about the configuration file. Can I just define in the docker build process and copy it into the right directory?
Also not sure which directory to store it.
I am trying to use docker compose and set up questdb, the questdb kafka conenctor and redpanda as kafka broker.
I had a typo in which I was passing the client.conf.string=
property, with a trailing equal sign. Of course I had an error message saying this
{"error_code":500,"message":"Either 'client.conf.string' or 'host' must be set."
I misinterpreted the message and I thought I was passing both the client.conf.string
and host
properties, and I was trying to see why host was being used. After a while I noticed my error. This might be only me, but maybe rewording the message to say that None of the properties have been configured would make things easier.
Thanks!
The stock sample uses Postgres & Connect images built by the Debezium project. They are pre-configured for Debezium. But real-world-like code samples should use official images. To demonstrate how to configure them for Debezium.
The connector should log which git revision was built from. This would help with troubleshooting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.