lensesio / fast-data-dev

Kafka Docker for development. Kafka, Zookeeper, Schema Registry, Kafka-Connect, Landoop Tools, 20+ connectors

Home Page:https://lenses.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kafka-server-stop and zookeeper-server-stop don't work inside container

AlexVPopov opened this issue · comments

When I enter a running Lenses Box container zookeeper-server-stop and kafka-server-stop don't seem to work.

docker exec -it lenses-box bash
zookeeper-server-stop #=> No zookeeper server to stop
kafka-server-stop #=> No kafka server to stop

Is this expected behavior? What is the proper way to restart Zookeeper and Kafka in Lenses Box?

Thank you.

Disclaimer: I am a user of fdd that just wants to help, so my answer may be incorrect.

Firstly, How much did you investigate this issue?

If I understand correctly the processes were started by supervisord, which might cause these scripts to fail.
To manually stop the process. try to do ps -elf | grep kafka and then kill the pid of the relevant processes.

Regardless maybe there should be an alternative script to do this operations if this one doesn't work.

As I found out you can run the command:

supervisorctl status ## to see the services
supervisorctl stop/start/restart service-name ## to do operations on a service

To do the operation of restarting the service you want

Hello @georgettica and thank you for your help. I haven't looked into this issue since I filed it, so I'm closing it.

I'm glad we closed the issue.
Just to clarify, did you solve the issue?

Since I've opened the issue I haven't tested this again, so I cannot confirm this. Would the need for me arise to restart kafka/zookeeper, I'd try your advice.

Okay :)
Hopefully one day this issue will help someone.