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

kafka 两个 listeners 时,EFAK 只显示其中的一个 #624

Open
charlielin opened this issue Jul 22, 2022 · 0 comments
Open

kafka 两个 listeners 时,EFAK 只显示其中的一个 #624

charlielin opened this issue Jul 22, 2022 · 0 comments

Comments

@charlielin
Copy link

charlielin commented Jul 22, 2022

我的 kafka 配置了两个 listeners

listeners=PUBLIC_SASL://0.0.0.0:5011,PUBLIC_PLAIN://0.0.0.0:5010
advertised.listeners=PUBLIC_SASL://192.168.181.2:5011,PUBLIC_PLAIN://192.168.181.2:5010
listener.security.protocol.map=PUBLIC_SASL:SASL_PLAINTEXT,PUBLIC_PLAIN:PLAINTEXT
inter.broker.listener.name=PUBLIC_SASL

其中 5010 是无鉴权的,5011 是有鉴权的。

开启 EFAK 之后,EFAK 应该是根据 zk 里的 /brokes/ids/$id 读到了如下的配置里的 prot:5010,所以选择连接了 5010 端口

{
    "listener_security_protocol_map": {
        "PUBLIC_SASL": "SASL_PLAINTEXT", 
        "PUBLIC_PLAIN": "PLAINTEXT"
    }, 
    "endpoints": [
        "PUBLIC_SASL://192.168.181.2:5011", 
        "PUBLIC_PLAIN://192.168.181.2:5010"
    ], 
    "jmx_port": -1, 
    "features": { }, 
    "host": "192.168.181.2", 
    "timestamp": "1658485899402", 
    "port": 5010, 
    "version": 5
}

但是由于 5010 端口是无鉴权的端口,因而无法显示所有的 topics,所有的 topics 必须通过 5011 端口才能显示。

如何才能让 EFAK 去读取 5011 端口的数据?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant