You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this command to generate the .desc protoc -o event.desc --proto_path=proto proto/com/example/kafka/event/v1/event.proto
And mounted it in this folder /opt/druid/proto-descriptors/
In my KafkaProducer I use the Event class and these properties
Downloaded all suggested libraries and put them in (tried both) /opt/druid/extensions/protobuf-extensions and /opt/druid/extensions/druid-protobuf-extensions also added in environment file DRUID_CLASSPATH=/opt/druid/extensions/druid-protobuf-extensions/*:/opt/druid/proto-descriptors/*(I tried echo $DRUID_CLASSPATH and it had only -CLASSPATH, so that's not really working):
common-config-6.0.1.jar
common-utils-6.0.1.jar
kafka-protobuf-provider-6.0.1.jar
kafka-protobuf-serializer-6.0.1.jar
kafka-schema-registry-client-6.0.1.jar
kotlin-stdlib-1.4.0.jar
wire-schema-3.2.2.jar
I did also try just the suggested ones in the repo (still not working):
I'm running
apache/druid:31.0.0
in Docker locally.I used this command to generate the .desc
protoc -o event.desc --proto_path=proto proto/com/example/kafka/event/v1/event.proto
And mounted it in this folder /opt/druid/proto-descriptors/
In my KafkaProducer I use the Event class and these properties
I can access the event.desc when I exec in the broker/historical/middlemanager
This is the config for Druid
But I get this error either in supervisor or just using Load data tab
I tried Schema registry as well. I did a POST to
locahlost:8084/subjects/test/vesrions
with payload{
"schemaType": "PROTOBUF",
"schema": "syntax = "proto3";\n\npackage com.example.kafka.event.v1;\n\n option java_multiple_files=true;\n option java_package = "com.example.kafka.event.v1";\n\n message Event {\n int64 timestamp = 1;\n optional string identity_id = 2;\n optional string clientId = 3;\n optional string firstName = 4;\n optional string lastName = 5;\n optional string email = 6;\n optional string phone = 7;\n optional string productId = 8;\n optional int32 allItems = 9;\n optional int32 usedItems = 10;\n}"
}
Downloaded all suggested libraries and put them in (tried both)
/opt/druid/extensions/protobuf-extensions
and/opt/druid/extensions/druid-protobuf-extensions
also added in environment fileDRUID_CLASSPATH=/opt/druid/extensions/druid-protobuf-extensions/*:/opt/druid/proto-descriptors/*
(I tried echo $DRUID_CLASSPATH and it had only -CLASSPATH, so that's not really working):I did also try just the suggested ones in the repo (still not working):
When I try to submit a supervisor
I get this:
I tried all the steps provided and even more, but I'm not getting anywhere. The data is being read from the topic, but I cannot parse it.
https://github.com/Godin/apache-druid/blob/master/docs/development/extensions-core/protobuf.md
When I tried the
/extentions/protobuf-extentions
folder from this example, the broker/historical and middle manager just all crashedhttps://blog.hellmar-becker.de/2022/05/26/ingesting-protobuf-messages-into-apache-druid/
Feels like something is missing from the explanations in the documentation.
The text was updated successfully, but these errors were encountered: