Kafka running on zookeeper subcontext or chroot
<p>State: We are sharing zookeeper with kafka and several different services, which are using zookeeper for coordination. They are nicely operating on zookeeper subcontext. Looks like this:</p>

<pre><code>/
   /service1/...
   /service2/...
   /brokers/...
   /consumers/...
</code></pre>

<p>My question is.. Is it possible to setup kafka to use subcontext? So, the other services can't eventually modify other services subcontext. It would be: </p>

<pre><code>/
   /service1/...
   /service2/...
   /kafka/brokers/...
   /kafka/consumers/...
</code></pre>

<p>I saw this syntax in other projects: </p>

<blockquote>
  <p>zk://10.0.0.1,10.0.0.2/kafka</p>
</blockquote>

<p>lets say. So, kafka would see only the <code>brokers</code> and <code>consumers</code> paths and there would be no way to mess up with other subcontext.</p>

<p>I'm afraid kafka is just not supported this format at the time. Other question is, is there a workaround? Like wrap up zookeeper somehow? Any ideas? Or kafka is supposed to use zookeeper exclusively. Is it best practice and we should spawn zookeeper for each project, which is overkill thus zookeeper need ensemble consists atleast of 3 nodes.</p>

<p>Thanks for your answer!</p>