My Flink app uses logback for logging, when submitting it from the operator
I get this error:

ERROR in ch.qos.logback.classic.joran.JoranConfigurator@7364985f - Could
not open URL [file:/opt/flink/conf/logback-console.xml].
java.io.FileNotFoundException: /opt/flink/conf/logback-console.xml (No such
file or directory)

https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/deployment/advanced/logging/#configuring-logback
says

"The Flink distribution ships with the following logback configuration
files in the conf directory, which are used automatically if logback is
enabled"

How do I "enable" logback? I don't see any relevant configuration param to
enable it, either in flink-conf.yaml or in the operator config.

I am also noticing that the log4j-console.properties that ends up in my
deployed app configmap is the one from the operator Helm chart
https://github.com/apache/flink-kubernetes-operator/tree/main/helm/flink-kubernetes-operator/conf
not
https://github.com/apache/flink/tree/master/flink-dist/src/main/flink-bin/conf
(where logback-console.xml lives). Should the operator have also a
logback-console.xml in the Helm chart?

Reply via email to