Open cdmikechen opened 2 years ago
/cc @alesj, @cescoffier, @ozangunalp
So the problem is yaml format or that warning?
@alesj
Both of these. Quarkus get config is "schema.registry.url"
, "auto.offset.reset"
, "key.deserializer"
, "value.deserializer"
, so that kafka cannot recognize these variables.
But the other, more yaml-ish format works for you?
I think that log category is a specific case in Quarkus. I had a long discussion about that with @ia3andy
But the other, more yaml-ish format works for you?
@alesj Quarkus can read config like this:
mp:
messaging:
incoming:
mqtt:
topic: xxxx
auto:
offset:
reset: earliest
schema:
registry:
url: http://xxxx
key:
deserializer: io.confluent.kafka.serializers.KafkaAvroDeserializer
value:
deserializer: io.confluent.kafka.serializers.KafkaAvroDeserializer
But I think the readability of this writing method is certainly not very good, especially when there are many configured variables.
I think that log category is a specific case in Quarkus. I had a long discussion about that with @ia3andy
@cescoffier So do you mean it can be supported? If this method is allowed, I can try to submit a PR to try to solve it.
Describe the bug
I use application.yaml to config quarkus, and I use kafka extension. My application.yaml like this:
At present, it seems that quarkus cannot directly recognize kafka's config like
log.category
.Expected behavior
I hope the configuration of Kafka can be similar to
log.category
.Instead of having to write like this, the readability of this writing method is certainly not very good, especially when there are many configured variables.
Actual behavior
When the quarkus service starts, kafka will have the following warning:
How to Reproduce?
No
Output of
uname -a
orver
dev
Output of
java -version
11.0.14
GraalVM version (if different from Java)
GraalVM CE 22.0.0.2
Quarkus version or git rev
2.7.5
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.6.3
Additional information
No