gpt4 book ai didi

How to use custom serde with provectus kafka-ui(如何在Provetus Kafka-UI中使用自定义serde)

转载 作者:bug小助手 更新时间:2023-10-25 10:57:52 32 4
gpt4 key购买 nike



I am doing poc with provectus kafka-ui, an open source GUI tool for kafka.

我正在用Provetus Kafka-UI做POC,这是一个用于Kafka的开源图形用户界面工具。


For normal string value, my setup is running fine. However I am not able to use it with CloudEvent. I see encoded garbled characters.

对于正常的字符串值,我的设置运行良好。但是,我不能将其与CloudEvent一起使用。我看到了编码的乱码字符。


I tried adding proto file for CloudEvent and using protobufFile as serde, but it is not working.

我尝试为CloudEvent添加proto文件,并使用协议bufFile作为serde,但不起作用。


Here is my docker-compose

这是我的被告牌-作文


  kafka:
image: confluentinc/cp-kafka:6.0.2
container_name: kafka
restart: always
depends_on:
- zookeeper
ports:
- "9092:9092"
- "29092:29092"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1

kafka-ui:
container_name: kafka-ui
image: provectuslabs/kafka-ui:latest
ports:
- "8080:8080"
depends_on:
- zookeeper
- kafka
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
KAFKA_CLUSTERS_0_JMXPORT: 9997
kafka.clusters.0.serde.0.name: ProtobufFile
kafka.clusters.0.serde.0.className: com.provectus.kafka.ui.serdes.builtin.ProtobufRawSerde
kafka.clusters.0.serde.0.properties.protobufFilesDir: /protofiles/
kafka.clusters.0.serde.0.properties.protobufMessageName: io.cloudevents.v1.CloudEvent # default type for values
kafka.clusters.0.serde.0.properties.protobufMessageNameByTopic.ais-fused: io.cloudevents.v1.CloudEvent
volumes:
- "./proto/:/protofiles"

更多回答

github.com/provectus/kafka-ui/blob/master/documentation/compose/…

Github.com/provectus/kafka-ui/blob/master/documentation/compose/…

优秀答案推荐
更多回答

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com