What is the ordering priority for loading configurations in Kafka-ui? #4313
Unanswered
SamsadSajid
asked this question in
Q&A
Replies: 1 comment
-
This discord thread asks a question
@Haarolean you replied
I think I am also facing the same issue. By any chance, Kafka-ui can only work with one type of config? i.e., either config file or env variables but not both of them together? If so, doesn't it contradict the kafka-ui doc
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I am deploying the latest version of Kafka-ui as an ECS app. I set the environment variables of the app as follows:
This works well for me! Now, I want to add a proto-sede to browse my messages. To do that I added new configurations to the above environment variables. After adding them it looks like this:
After this deployment, I expected the Kafka-ui to show the
ProtobufFile
option in the value serde dropdown options. But it did not!So I changed the configurations to use the uppercase format as follows:
After this deployment, I can see the
ProtobufFile
option in the value serde dropdown options. And I could browse the topic1 messages. But I faced a new problem.I have topic names with the following formats:
With my last configurations, I could browse messages for topics that did not have
_
in their name. But for topics with_
in their name, Kafka-ui did not show theProtobufFile
option in the value serde dropdown options and did not deserialize those messages.At this point, it seems like
_
is char based on which Kafka-ui translates the key name. So when I addedKAFKA_CLUSTERS_0_SERDE_0_PROPERTIES_PROTOBUFMESSAGENAMEBYTOPIC_TOPIC_2
, Kafka-ui translated it toOf course, it will not deserialize messages because I don't have a topic called
2
. So the problem here is Kafka-ui is splitting the key by_
and splittingtopic_2
to2
. So here are my questions:KAFKA_CLUSTERS_0_NAME
andkafka.clusters.0.serde.0.properties.protobufFilesDir
mixed in docker-compose and it works! But the same does not work in ECS env vars. I don't seem to get why. Can you please share the reasons why?_
in its name?config.yml
file as explained in the kafka-ui doc, and uppercase format env vars which will be used by kafka-ui at runtime?Beta Was this translation helpful? Give feedback.
All reactions