Apache kafka Apache Zookeeper在更改默认端口时出现问题
我正在尝试安装Zookeeper和Kafka进行基本测试 并且必须将Zookeeper中的客户端端口更改为可用/打开的端口,如下所示Apache kafka Apache Zookeeper在更改默认端口时出现问题,apache-kafka,apache-zookeeper,Apache Kafka,Apache Zookeeper,我正在尝试安装Zookeeper和Kafka进行基本测试 并且必须将Zookeeper中的客户端端口更改为可用/打开的端口,如下所示 dataDir=/tmp/zookeeper # the port at which the clients will connect clientPort=56xxx 但是,即使在zookeeper属性文件中对其进行更改后,当我启动Kafka服务器时,它仍会尝试连接到默认的2181端口,如下所示,Kafka服务器不会启动 Opening socket conn
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=56xxx
但是,即使在zookeeper属性文件中对其进行更改后,当我启动Kafka服务器时,它仍会尝试连接到默认的2181端口,如下所示,Kafka服务器不会启动
Opening socket connection to server
localhost/127.0.0.1:2181.
......
INFO Socket error occurred: localhost/127.0.0.1:2181:
Connection refused
-------------
我被这个问题困扰着,除了Zookeeper属性文件之外,还有其他配置或属性文件需要我更改,以便Kafka查找新的Zookeeper客户端端口吗?您需要编辑Kafka的
服务器.properties文件中的Zookeeper.connect