Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Length-delimited protobuf #65 #67

Merged
merged 1 commit into from
Mar 22, 2020
Merged

Length-delimited protobuf #65 #67

merged 1 commit into from
Mar 22, 2020

Conversation

lspgn
Copy link
Contributor

@lspgn lspgn commented Mar 22, 2020

Added -proto.fixedlen=true to have protobuf encoded with length before the message (Buffer.EncodeMessage). This is required by Clickhouse.

A table example is the following:

CREATE TABLE flows
(
    TimeReceived UInt64,
    SamplingRate UInt64,
    ...
) ENGINE = Kafka()
SETTINGS
    kafka_broker_list = 'kafka:9092',
    kafka_topic_list = 'flows',
    kafka_group_name = 'clickhouse',
    kafka_format = 'Protobuf',
    kafka_schema = './flow.proto:FlowMessage';

@lspgn lspgn merged commit 8b0a2cc into master Mar 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant