sachin tandon
sachin tandon

Reputation: 1

Can i run Apache kafka in Apache Tomcat container . If yes how?

I have seen the tutorail of setting up solr in tomcat . I am curious to know if it is possible to run apache kafka in tomcat container . if yes how can i do that .

Upvotes: 0

Views: 2603

Answers (2)

jkilgrow
jkilgrow

Reputation: 313

kafka requires a running zookeeper server (which is bundled with the kafka server). Zookeeper runs as a separate service...no tomcat (or any other servlet container or JavaEE application server required).

Please read the "Quickstart" guide on the kafka website: https://kafka.apache.org/quickstart It tells you exactly how to get started.

Upvotes: 0

Anupam Jain
Anupam Jain

Reputation: 476

For kafka its not possible. In case of solr its distribution comes with solr.war which runs on default jetty container, so that solr calls are exposed as rest service. You can deploy solr.war on tomcat as well with few configurations and running in tomcat acting as servlet container and can expose solr rest calls. In kafka distribution there is no such possibility.

Upvotes: 1

Related Questions