Kafka in supervisor mode에 대한 답변에 이어 동일한 작업을 시도했다. 문제는 내 kafka (버전 0.8.1.1) 패키지가 다른 실행 스크립트를 패키지로 보일 것입니다. 그래서 적응하기 위해 노력하고 다음 supervisord 구성 생산했다 :kafka 0.8.1.1 supervisord 데몬을 멈추었을 때 감독 (수퍼바이저) 아래서 죽지 않는다
[program:kafka]
command=pidproxy /var/run/kafka.pid /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
user=kafka
autostart=true
autorestart=true
startsecs=10
startretries=999
log_stdout=true
log_stderr=true
logfile=/var/log/kafka/supervisord-kafka.out
logfile_maxbytes=20MB
logfile_backups=10
나는 다음과 같은 관리자의 RPM 사용 해제 카프카 죽이지 않는 supervisord 데몬을 stoping
[[email protected] yyy]# rpm -qi supervisor
Name : supervisor Relocations: (not relocatable)
Version : 3.0 Vendor: obs://build.opensuse.org/home:presbrey
Release : 13.1 Build Date: Thu 13 Jun 2013 08:35:40 AM IDT
을 아래 참조 :
를[[email protected] yyy]# jps
3236 core
31378 QuorumPeerMain
31408 Jps
2964 Kafka
31293 supervisor
31246 nimbus
[[email protected] yyy]# supervisorctl status
kafka RUNNING pid 2963, uptime 1 day, 5:15:18
storm-nimbus RUNNING pid 31246, uptime 0:02:06
storm-supervisor RUNNING pid 31293, uptime 0:01:44
storm-ui RUNNING pid 3236, uptime 5 days, 22:37:33
storm-zookeeper RUNNING pid 31378, uptime 0:00:47
[[email protected] yyy]# service supervisord stop
Stopping supervisord: Shut down
Waiting roughly 60 seconds for /var/run/supervisord.pid to be removed after child processes exit
Supervisord exited as expected in under 12 seconds
[[email protected] yyy]# supervisorctl status
unix:///var/tmp/supervisor.sock no such file
[[email protected] yyy]# jps
2964 Kafka
31474 Jps
감독자의 카프카 (kafka) 섹션에'stopasgroup = true'를 추가하고 이것이 작동하는지 확인할 수 있습니까? –
완벽한 감사합니다! upvote 및 표시 할 수 있도록 대답으로 추가 하시겠습니까? – Yaneeve