{"id":711,"date":"2018-07-13T06:28:55","date_gmt":"2018-07-13T06:28:55","guid":{"rendered":"http:\/\/shijuvarghese.com\/?p=711"},"modified":"2018-09-06T09:51:42","modified_gmt":"2018-09-06T09:51:42","slug":"kafka-running-multiple-instances-of-kafka-in-the-same-host","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=711","title":{"rendered":"Kafka: Running multiple instances of Kafka in the same host"},"content":{"rendered":"<p>In situations where you want run a cluster of brokers, but do not have spare hosts, you may run multiple brokers nodes in the same server host. For this you will require seperate copies of &#8220;config\/server.properties&#8221; with unique values for the following variables in it:<\/p>\n<ul>\n<li>broker.id<\/li>\n<li>port<\/li>\n<li>log.dir<\/li>\n<\/ul>\n<p>Once you have these separate copies of &#8220;config\/server.properties&#8221; files with distinct values of the above three, you may start up each broker instance using the same command:<\/p>\n<ul>\n<li>bin\/kafka-server-start.sh config\/server1.properties<\/li>\n<li>bin\/kafka-server-start.sh config\/server1.properties<\/li>\n<li>etc<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>In situations where you want run a cluster of brokers, but do not have spare hosts, you may run multiple brokers nodes in the same <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=711\" title=\"Kafka: Running multiple instances of Kafka in the same host\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":706,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,24],"tags":[],"class_list":["post-711","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-kafka"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=711"}],"version-history":[{"count":3,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions"}],"predecessor-version":[{"id":714,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions\/714"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/706"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}