Re: Running Kafka from IDE

2024-10-24 Thread Ivan Yurchenko
Hi Pradyumna, It's possible. Here are some points: 1. kafka.Kafka is the class you want to run. 2. As the parameter, pass the path to your server.properties, i.e. the config file. 3. Point to the logger config as the VM properties: -Dlog4j.configuration=file:/path/to/log4j.properties. 4. You nee

Re: Running Kafka from IDE

2024-10-24 Thread Mickael Maison
Hi, You can also import the Kafka project as a Gradle project in IntelliJ, and then create an Application Run Configuration to run/debug it. In your run configuration, set the module classpath to kafka.core.main, the main class to kafka.Kafka, and the program arguments to one of the server.propert

Running Kafka from IDE

2024-10-24 Thread Pradyumna K
Hello everyone, Is there a way I could run Kafka from within IntelliJ, in debug mode, and let producers and consumers connect to it? (I want to run producers and consumers as separate programs on my computer and let them connect to this Kafka which is running under debugger, so that I can put bre

Re: Running Kafka from IDE

2024-10-24 Thread Pradyumna K
I've found one approach that works. Posting it here in case someone else needs it. If there is a simpler method, do let me know. Use "./gradlew clean releaseTarGz -x test" to build a tarball with my changes Take the generated tarball in core/build/distributions, expand it and run it. Set KAFKA_

Re: Running Kafka from IDE

2024-10-23 Thread Pradyumna K
Thank you. Looks like I too accidentally discovered this approach minutes before your reply. I wasn't aware of the DEBUG_SUSPEND_FLAG though. It is useful. Regards Pradyumna

Re: Running Kafka from IDE

2024-10-23 Thread Andrew Schofield
2024 05:59 To: dev@kafka.apache.org Subject: Running Kafka from IDE   Hello everyone, Is there a way I could run Kafka from within IntelliJ, in debug mode, and let producers and consumers connect to it? (I want to run producers and consumers as separate programs on my computer and let them connect