Replies: 3 comments 1 reply
-
The stuff around the Log4j property makes no sense. You should definitely remove it. And even more important, you should share how you build the |
Beta Was this translation helpful? Give feedback.
-
So i tried and moved past this error, here is my Dockerfile
Then I created a KafkaUser
But then when i deploy the KafkaConnect
But whatever I try seems like i keep getting
|
Beta Was this translation helpful? Give feedback.
-
I haven't seen how should we use these KafkaUsers to allow KafkaConnect to connect to the Kafka cluster.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
I have configured the strimzi operator and the crds for version 0.46, deployed Kafka and now trying to deploy KafkaConnect as follows
But no matter what I've tried, the bootstrap servers is not populated and the container crashes because of missing log4j configuration:
Starting Kafka Connect with configuration:
Bootstrap servers
bootstrap.servers=
REST Listeners
rest.port=8083
rest.advertised.host.name=scylla-to-elasticsearch-connect-0.scylla-to-elasticsearch-connect.kafka.svc
rest.advertised.port=8083
Plugins
plugin.path=/opt/kafka/plugins
Provided configuration
security.protocol=PLAINTEXT
producer.security.protocol=PLAINTEXT
consumer.security.protocol=PLAINTEXT
admin.security.protocol=PLAINTEXT
Additional configuration
consumer.client.rack=
Configuring Java heap: -Xms3221225472 -Xmx3221225472
Picked up JAVA_TOOL_OPTIONS: -Dlog4j.configuration=file:/opt/kafka/custom-config/log4j.properties
log4j:ERROR Could not read configuration file from URL [file:/opt/kafka/custom-config/log4j.properties].
java.io.FileNotFoundException: /opt/kafka/custom-config/log4j.properties (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
at java.base/java.io.FileInputStream.(FileInputStream.java:157)
at java.base/java.io.FileInputStream.(FileInputStream.java:111)
at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:189)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:532)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:485)
at org.apache.log4j.LogManager.(LogManager.java:115)
at org.slf4j.impl.Reload4jLoggerFactory.(Reload4jLoggerFactory.java:67)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:72)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:45)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
at org.apache.kafka.connect.cli.AbstractConnectCli.(AbstractConnectCli.java:46)
log4j:ERROR Ignoring configuration file [file:/opt/kafka/custom-config/log4j.properties].
log4j:WARN No appenders could be found for logger (org.apache.kafka.connect.cli.AbstractConnectCli).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Steps to reproduce
No response
Expected behavior
No response
Strimzi version
0.46.0
Kubernetes version
v1.33.1
Installation method
Helm
Infrastructure
Bare-metal
Configuration files and logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions