Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果默认的listeners advertised 没有配置,127.0.0.1无法链接 #31

Open
1978mountain opened this issue Sep 1, 2024 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@1978mountain
Copy link

默认下载安装kafka,是没有配置以上两个属性的,需要手动配置才能链接,使用其他的工具,可以链接。
listeners=PLAINTEXT://127.0.0.1:9092
advertised.listeners=PLAINTEXT://127.0.0.1:9092

@Bronya0
Copy link
Owner

Bronya0 commented Sep 2, 2024

你添加hosts到本地就行了,因为本地解析不了服务器的hosts

@Bronya0
Copy link
Owner

Bronya0 commented Sep 2, 2024

在默认的Kafka配置下,客户端与Kafka集群通信都是通过broker的主机名进行的,因此客户端都需要在 hosts 中配置各个broker的IP和主机名;比如windows配置hosts文件

@Bronya0 Bronya0 added help wanted Extra attention is needed good first issue Good for newcomers labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants