mesos / kafka

Apache Kafka on Apache Mesos
Apache License 2.0
412 stars 140 forks source link

Why does the Scheduler need to be run in HOST mode when inside a Docker container? #157

Closed aglahe closed 9 years ago

aglahe commented 9 years ago

Based upon what i learned from #155, setting up the scheduler in HOST mode fixed that issue...but why? What is the communication path between the Scheduler and the Tasks? Are there ports that need to be open between them other than 7000?

It looks like you can run the scheduler in BRIDGE mode..when run outside of marathon..but, for some reason, the fix for #155 was to put it in HOST mode.

Just curious.

Thanks in advance.

dmitrypekar commented 9 years ago

Afaik, Scheduler communicates with mesos master via 2 connections:

  1. from scheduler to master;
  2. from master to scheduler; So scheduler should be accessible from master. I think was the point.