You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "StefanPitur (via GitHub)" <gi...@apache.org> on 2025/06/11 12:50:36 UTC
[PR] :wrench: Add Gradle option to start broker outside CLI [kafka]
StefanPitur opened a new pull request, #19950:
URL: https://github.com/apache/kafka/pull/19950
The only way to start a broker was to run `./bin/kafka-server-start.sh config/server.properties`. However, this would require the code to be compiled, making it very difficult to attach a debugger so testing purposes.
Needed to include `runtimeOnly "org.apache.logging.log4j:log4j-slf4j-impl:2.24.3"`, as otherwise there would be no implementation that actually outputs any logs to CLI. My guess is that by running the shell command, a log4j implementation is injected automatically. However, when running from Gradle, unless specified (what we did), the system cannot locate any implementation, but rather just the interface.
This is hacky, but will do it for the moment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] :wrench: Add Gradle option to start broker outside CLI [kafka]
Posted by "StefanPitur (via GitHub)" <gi...@apache.org>.
StefanPitur closed pull request #19950: :wrench: Add Gradle option to start broker outside CLI
URL: https://github.com/apache/kafka/pull/19950
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org