The log4j system fails in Apache Kafka

Hi @ElToro

I think it’s related to the “double-slash” in your path:

I did some tests in my local dev env and received the same errors if
the path starts with to leading slashes

echo $PWD
//app/kafka_2.13-3.0.0
kafka@kafka01://app/kafka_2.13-3.0.0$ ./bin/kafka-storage.sh random-uuid
log4j:ERROR Could not read configuration file from URL [file://app/kafka_2.13-3.0.0/bin/../config/tools-log4j.properties].
java.net.UnknownHostException: app
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
[...]

echo $PWD
/app/kafka_2.13-3.0.0
kafka@kafka01:/app/kafka_2.13-3.0.0$ ./bin/kafka-storage.sh random-uuid
fiFgAngERZK9FDh-ygLf_A

HTH,
Michael

2 Likes