mesos / kafka

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

not able to start broker. Failed to get user information for 'vagrant': #221

Open dp-farm opened 8 years ago

dp-farm commented 8 years ago

Hi Team,

I am trying to play with kafka-mesos. And tried following 'kafka-mesos.properties' on my ubuntu machine with a user as 'ubuntu'.

user=ubuntu storage=zk:/mesos-kafka-scheduler master=10.217.212.243:5050 zk=10.217.212.243:2181/chroot api=http://10.217.212.243:7000

But I keep on getting error like this when I try to start broker --> _2016-06-08 21:07:54,872 [Thread-97] INFO ly.stealth.mesos.kafka.Scheduler$ - [statusUpdate] kafka-0-97f9886c-55b0-48b9-9efb-a8425faafc89 TASK_FAILED slave:#19-S2 reason:REASON_COMMAND_EXECUTORFAILED message:Failed to launch container: Failed to chown directory: /tmp/mesos/slaves/9e3a3df3-55ec-48fb-b984-4f78609f9a19-S2/frameworks/063c9b3a-2376-4172-a9e8-7d96d193e8c3-0001/executors/kafka-0-bff9ebe7-c4d5-497b-9538-ce81ba3c6f93/runs/0cf8c77c-8ea7-460b-8c21-392c0f7e130e to user: vagrant with error: Failed to get user information for 'vagrant' : Success; Executor terminated

joestein commented 8 years ago

seems like you maybe already set the user to vagrant launched the framework and then changed the user after... i believe mesos has an issue with that you might have to destroy you framework and try it all over again.

mayarelmohr commented 8 years ago

I had the same issue but it got solved when I configured the switch_flag in mesos