我尝试在aws ec2 windows 10示例上设置zookeeper,然后从示例和单独的计算机连接kafka 2.11-1.1.0。
在虚拟机中,我运行了:
bin\windows\zookeeper-server-start.bat config\zookeeper.properties
bin\windows\kafka-server-start.bat config\server.properties
在另一台电脑上,只运行第二个命令。这些是虚拟桌面上每台计算机上server.properties文件的修改部分。。。
broker.id=0
listeners=PLAINTEXT://(AWS private DNS):9092
advertised.listeners=PLAINTEXT://(AWS public DNS):9092
zookeeper.connect=(AWS private DNS):2181
…在另一台计算机上:
broker.id=1
listeners=PLAINTEXT://(local IPv4):9092
advertised.listeners=PLAINTEXT://(public IPv4):9092
zookeeper.connect=(AWS public DNS):2181
zookeeper和kafka在虚拟pc中工作,但当我尝试在另一台计算机上启动kafka时,出现以下错误:
ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING
暂无答案!
目前还没有任何答案,快来回答吧!