kafka docker无法开始使用spotify

nkkqxpd9  于 2021-06-06  发布在  Kafka
关注(0)|答案(0)|浏览(393)

我正在尝试在本地windows计算机上的docker中设置apache kafka。我用的是spotifyKafka图像。下面是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

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题