kafka connector 端口修改无效

格物致知 发表于: 2019-05-05   最后更新时间: 2021-01-27 22:21:18   2,405 游览

1、在使用连接器时使用了如下命令

bin/connect-standalone.sh config/connect-standalone.properties config/connect-file-source.properties config/connect-file-sink.properties

报了 8083端口占用的错误,于是将默认的8083修改为8085,然而同样的问题还是存在。仍然报的是8083端口被占用

2. 以下是修改配置文件的地方,文件是:connect-distributed.properties

 # These are provided to inform the user about the presence of the REST host and port configs 
# Hostname & Port for the REST API to listen on. If this is set, it will bind to the interface used to listen to requests.
#rest.host.name=
rest.port=8085
发表于 2019-05-05
添加评论

创建前,先 netstat -an | grep tcp 看下端口是否被占用。

格物致知 -> 半兽人 5年前

嗯,这个已经知道是端口占用的问题,可是修改后依旧没有生效,刚才尝试者修改了connect-standalone.properties文件,在里面手动添加了rest.port=8085成功了,修改connect-distributed.properties好像没用。我的版本是 kafka_2.11-2.2.0

你的答案

查看kafka相关的其他问题或提一个您自己的问题