Closed jaehyeon-kim closed 1 year ago
Hello @jaehyeon-kim, thank you for rasing this. For glue serder default topic -> schema naming pattern is just 1-to-1 mapping (as is). This is done because of default deserializer's behavior (from java glue library).
To change it to smth else (like %s-value
) you can set the corresponding property https://github.com/provectus/kafkaui-glue-sr-serde/blob/5a41f6937faab630efc9cf4cfcdcf2c782fab96d/docker-compose/setup-example.yaml#L27
Hi @iliax
I update it as you mentioned. Here is the docker compose file.
version: "3.5"
services:
kafka-ui-glue:
image: provectuslabs/kafka-ui:master
container_name: kafka-ui-glue
ports:
- "8080:8080"
networks:
- kafkanet
environment:
LOGGING_LEVEL_ROOT: debug
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN: $AWS_SESSION_TOKEN
KAFKA.clusters.0.name: local
KAFKA.clusters.0.bootstrapServers: kafka-0:9092,kafka-1:9092,kafka-2:9092
kafka.clusters.0.serde.0.name: GlueSchemaRegistry
kafka.clusters.0.serde.0.filePath: /glue-serde/kafkaui-glue-serde-1.0-SNAPSHOT-jar-with-dependencies.jar
kafka.clusters.0.serde.0.className: com.provectus.kafka.ui.serdes.glue.GlueSerde
kafka.clusters.0.serde.0.properties.region: $AWS_DEFAULT_REGION #required
kafka.clusters.0.serde.0.properties.registry: ccdak #required, name of Glue Schema Registry
# template that will be used to find schema name for topic key. Optional, default is null (not set).
kafka.clusters.0.serde.0.properties.keySchemaNameTemplate: "%s-key"
# template that will be used to find schema name for topic value. Optional, default is '%s'
kafka.clusters.0.serde.0.properties.valueSchemaNameTemplate: "%s-value"
# # schema name -> topics pattern where it will be used for keys. Optional.
# kafka.clusters.0.serde.0.properties.topicKeysSchemas.some-topic-key: "some-topic1|some-topic2"
# # schema name -> topics pattern where it will be used for values. Optional.
# kafka.clusters.0.serde.0.properties.topicValuesSchemas.some-topic-value: "some-topic1|some-topic2"
# kafka.clusters.0.serde.0.properties.topicValuesSchemas.another-topic-val: "another-topic-value"
volumes:
- ../misc:/glue-serde
networks:
kafkanet:
external: true
name: kafka-network
@jaehyeon-kim doesn't it still work?
Also, try the 1.0.1 release.
Hi @Haarolean
I tried with v1.0.3 and it works.
Cheers, Jaehyeon
Hi
The value is serialised as avro and the schema is stored in a Glue schema registry (
%s-value
). However values are not deserialised.I enabled debug logs and the schema seems to be fetched correctly.
Attached includes the full log messages.
log.txt
Can you please check it?
Cheers, Jaehyeon