You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jordan Moore (Jira)" <ji...@apache.org> on 2021/04/12 03:57:00 UTC

[jira] [Commented] (KAFKA-12517) Kafka's readme should provide Run configurations in the BUILD with IDE Section

    [ https://issues.apache.org/jira/browse/KAFKA-12517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17319011#comment-17319011 ] 

Jordan Moore commented on KAFKA-12517:
--------------------------------------

I think the recommendation is to actually use kafka-server-start for running the broker with your code changes. 

You can find the main class (and how the classpath is constructed) by looking at that shell script + kafka-run-class.sh

If you need to setup a debugger, the KAFKA_DEBUG env var can be set - https://github.com/apache/kafka/blob/trunk/bin/kafka-run-class.sh#L235-L252

> Kafka's readme should provide Run configurations in the BUILD with IDE Section
> ------------------------------------------------------------------------------
>
>                 Key: KAFKA-12517
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12517
>             Project: Kafka
>          Issue Type: Improvement
>          Components: build
>            Reporter: Aviral Srivastava
>            Priority: Major
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> I want to contribute to Kafka and for that, I want to set up IntelliJ IDEA for Kafka so that I can debug and run it(Kafka) using an IDE. 
> However, I am not able to configure my "Run" settings and the documentation does not contain any such information.
> I dived deeper into how Kafka is normally executed and could not deduce the basics such as Classpath, etc.
> I have asked a specific question regarding the same here: [https://stackoverflow.com/questions/66739363/where-is-the-main-class-of-kafka-located]
> I am ready to contribute (add Run configs to the configuration) but I need some help from the community in setting up my own IDE.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)