Kafka docker无法开始使用Spotify

时间:2018-10-30 07:52:01

标签: docker apache-kafka spotify

我正在尝试在本地Windows计算机上的docker中设置Apache kafka。我正在使用Spotify kafka图像。下面是docker命令:

docker run -p 2181:2181 -p 9092:9092 
--env ADVERTISED_HOST=192.168.99.100
--env ADVERTISED_PORT=9092
 spotify/kafka

正在下载kafka映像,可以看到zookeeper已启动并进入运行状态,但是kafka服务器无法启动并显示消息

  

kafka进入了致命状态,太多的重试开始太快了

下面是日志:

$ docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=192.168.99.100 --env ADVERTISED_PORT=9092 spotify/kafka
/usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file
 in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configu
ration file for improved security.
  'Supervisord is running as root and it is searching '
2018-10-30 07:29:27,733 CRIT Supervisor running as root (no user in config file)
2018-10-30 07:29:27,733 WARN Included extra file "/etc/supervisor/conf.d/zookeeper.conf" during parsing
2018-10-30 07:29:27,734 WARN Included extra file "/etc/supervisor/conf.d/kafka.conf" during parsing
2018-10-30 07:29:27,744 INFO RPC interface 'supervisor' initialized
2018-10-30 07:29:27,745 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2018-10-30 07:29:27,746 INFO supervisord started with pid 1
2018-10-30 07:29:28,749 INFO spawned: 'zookeeper' with pid 8
2018-10-30 07:29:28,755 INFO spawned: 'kafka' with pid 9
2018-10-30 07:29:29,563 INFO exited: kafka (exit status 1; not expected)
2018-10-30 07:29:30,566 INFO success: zookeeper entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-30 07:29:30,569 INFO spawned: 'kafka' with pid 249
2018-10-30 07:29:30,838 INFO exited: kafka (exit status 1; not expected)
2018-10-30 07:29:32,844 INFO spawned: 'kafka' with pid 471
2018-10-30 07:29:33,150 INFO exited: kafka (exit status 1; not expected)
2018-10-30 07:29:36,158 INFO spawned: 'kafka' with pid 693
2018-10-30 07:29:36,452 INFO exited: kafka (exit status 1; not expected)
2018-10-30 07:29:37,454 INFO gave up: kafka entered FATAL state, too many start retries too quickly

0 个答案:

没有答案