Kafka | java.net.BindException: Address already in use

nathan_lzy

问题描述

启动kafka集群出错。开启kafka集群先要开启zookeeper,执行命令开启zookeeper出错:

ERROR Unexpecte exception, exiting abnormally(org.apache.zookeeper.erver.ZookeeperServerMain)java,net,BindException: 地址已在使用
  at xxx
  at xxx

image.png

问题分析

可能是端口被占用的原因

问题解决

1、先查看端口占用情况

sudo netstat -atunlp | grep 2181

2、杀死占用进程

sudo kill -9 <占用端口的PID>

3、重新启动Zookeeper即可


相关文章

猜你想看

阅读 745

catchFault
The purpose of this column is to record the problems encountered in programming and give solution...

better and better, day by day.

4 声望
0 粉丝
0 条评论

better and better, day by day.

4 声望
0 粉丝
文章目录
宣传栏