kafka启动服务器未启动

lb3vh1jj  于 2021-06-04  发布在  Kafka
关注(0)|答案(1)|浏览(598)

第一次使用Kafka(kafka&zookeeper)时,我认识了每个人,所以我遵循了一些教程,这些教程让我遇到了一个问题。我可以运行zookeper,但当我试图运行Kafka使用 .\kafka-server-start.bat C:\kafka\config\server.properties 我在图像上得到以下输出。
Kafka输出
知道会是什么吗?我已安装jdk并正在工作:

PS C:\kafka\bin\windows> java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

zookeeper设置并完成了变量,但kafka一直没有启动。
zookeeper输出
我的zookeeper conf文件如下:


# The number of milliseconds of each tick

tickTime=2000

# The number of ticks that the initial

# synchronization phase can take

initLimit=10

# The number of ticks that can pass between

# sending a request and getting an acknowledgement

syncLimit=5

# the directory where the snapshot is stored.

# do not use /tmp for storage, /tmp here is just

# example sakes.

dataDir=./logs

# the port at which the clients will connect

clientPort=2181

# the maximum number of client connections.

# increase this if you need to handle more clients

maxClientCnxns=60

没有更改server.properties文件中的任何内容。

mzaanser

mzaanser1#

是否正确设置了环境变量?

JAVA_HOME = C:\Progra~1\Java\jdk1.8.0_201 (or your jdk version)
PATH += %JAVA_HOME%\bin

相关问题