dmitrybe / clickhouse-kafka-connect Goto Github PK
View Code? Open in Web Editor NEWIngress data from kafka topic into clickhouse table (JSON format)
License: Other
Ingress data from kafka topic into clickhouse table (JSON format)
License: Other
I run command:
./confluent-5.1.1/bin/connect-standalone ./configuration/connect-standalone.properties ./configuration/clickhouse-sink.properties
Then, I get some errors:
ERROR Failed to create job for ./configuration/clickhouse-sink.properties (org.apache.kafka.connect.cli.ConnectStandalone:108)
[2019-02-15 02:13:10,943] ERROR Stopping after connector error (org.apache.kafka.connect.cli.ConnectStandalone:119)
java.util.concurrent.ExecutionException: org.apache.kafka.connect.errors.ConnectException: Failed to find any class that implements Connector and which name matches com.grabds.kafka.connect.ClickhouseSink, available connectors are: PluginDesc{klass=class org.apache.kafka.connect.file.FileStreamSinkConnector, name='org.apache.kafka.connect.file.FileStreamSinkConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=sink, typeName='sink', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.file.FileStreamSourceConnector, name='org.apache.kafka.connect.file.FileStreamSourceConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockConnector, name='org.apache.kafka.connect.tools.MockConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=connector, typeName='connector', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockSinkConnector, name='org.apache.kafka.connect.tools.MockSinkConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=sink, typeName='sink', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockSourceConnector, name='org.apache.kafka.connect.tools.MockSourceConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.SchemaSourceConnector, name='org.apache.kafka.connect.tools.SchemaSourceConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.VerifiableSinkConnector, name='org.apache.kafka.connect.tools.VerifiableSinkConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.VerifiableSourceConnector, name='org.apache.kafka.connect.tools.VerifiableSourceConnector', version='2.1.0-cp2', encodedVersion=2.1.0-cp2, type=source, typeName='source', location='classpath'}
at org.apache.kafka.connect.util.ConvertingFutureCallback.result(ConvertingFutureCallback.java:79)
at org.apache.kafka.connect.util.ConvertingFutureCallback.get(ConvertingFutureCallback.java:66)
at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:116)
What can I do to fix these errors ?? Please help !!
Ingestion in clickhouse fails through this connector if field name in the clickhouse schema contains characters other than alphanumeric.
E.g:-
CREATE TABLE sample (Event-Name
String, Unique-ID
String, Event-Time
DateTime)
ENGINE = MergeTree() PARTITION BY toYYYYMM(Event-Time
) ORDER BY (toYYYYMM(Event-Time
), Event-Name
) SETTINGS index_granularity = 8192
In the above schema all the fields have "-" in their names.
This might be required if we want to have direct mapping from field names in kafka event to schema fields in clickhouse table.
There is a small fix for this. I want to create a pull request for this. Please let me know.
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.