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

Jay Kreps commented on KAFKA-2671:
----------------------------------

The use case for embedding Kafka is to make it work with existing config, 
monitoring, and deployment tools that require some integration work (logic 
specific to that framework) and also to support integration testing. Rather 
than trying to provide plugin hooks for this which are usually kind of limited 
and hacky you can just have people create their own main method and that way 
they can add whatever logic on startup or shutdown they want. Plus just as a 
matter of cleanliness it's nice to be able to have a clean path to do 
programmatically whatever we're doing in the command line tool. We've tried to 
support this usage pattern since early on so if it has gotten painful it'd be 
nice to clean it up a bit.

> Enable starting Kafka server with a Properties object
> -----------------------------------------------------
>
>                 Key: KAFKA-2671
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2671
>             Project: Kafka
>          Issue Type: Improvement
>          Components: core
>            Reporter: Ashish K Singh
>            Assignee: Ashish K Singh
>
> Kafka, as of now, can only be started with a properties file and override 
> params. It makes life easier for management applications to be able to start 
> Kafka with a properties object programatically.
> The changes required to enable this are minimal, just a tad bit of 
> refactoring of kafka.Kafka. The changes must maintain current behavior intact.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to