Yjk
V2EX  ›  问与答

kafka 集群配置 外部服务器访问问题

  •  
  •   Yjk · Oct 25, 2019 · 2878 views
    This topic created in 2416 days ago, the information mentioned may be changed or developed.

    kafka 部署下专有云上, 连接 kafka 集群是本地连接, 已经做过端口的映射,本地 hosts 文件也已经做了相应的配置,但是本地项目启动的时候还是有问题,如下

    启动报错信息: [Consumer clientId=consumer-7, groupId=EEQQp2E1] Connection to node 2 (bdflink3/xxx.xx.xxx.xx:9092) could not be established. Broker may not be available.

    kafka server.properties 配置:

    broker.id=2 listeners=PLAINTEXT://bdflink3:9092 advertised.listeners=PLAINTEXT://bdflink3:9092 advertised.port=9092

    不清楚出错的原因在哪里,在网上找了很多帖子方法都试了,还是没有效果,有没有大佬能够指点下,万分感谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2509 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 01:33 · PVG 09:33 · LAX 18:33 · JFK 21:33
    ♥ Do have faith in what you're doing.