zoukankan      html  css  js  c++  java
  • SpringBoot整合kafka报could not be established. Broker may not be available.

    SpringBoot整合kafka报could not be established. Broker may not be available.

    报错日志

    [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
    [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127 .0.0.1:9092) could not be established. Broker may not be available.
    [AdminClient client Id=adminclient-1] Connection to node 0 (localhost/127 .0.0.1:9092) could not be established. Broker may not be available.
    [AdminClient clientId= adminclient-1] Connection to node 0 (localhost/127 .0.0.1:9092) could not be established. Broker may not be available.
    [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127 .0.0.1:9092) could not be established. Broker may not be available.
    [AdminClient client Id=adminclient-1] Connection to node 0 (localhost/127 .0.0.1:9092) could not be established. Broker may not be available.
    [ AdminClient client Id-adminclient-1] Connection to node 0 (localhost/127 .0.0.1:9092) could not be established. Broker may not be available.
    [AdminClient client Id=adminclient-1] Connection to node 0 (localhost/127 .0.0.1:9092) could not be established. Broker may not be available.
    

    解决,修改kafka的server.properties

    listeners=PLAINTEXT://kafka-host:9092
    advertised.listeners=PLAINTEXT://kafka-host:9092
    

    例如:
    在这里插入图片描述

  • 相关阅读:
    斯托克斯定理(Stokes' theorem)
    记号的认识、公式的理解
    记号的认识、公式的理解
    Python 金融数据分析 (一)—— 股票数据
    Python 金融数据分析 (一)—— 股票数据
    开源项目
    开源项目
    感知机模型及其对偶形式
    感知机模型及其对偶形式
    jni编译non-numeric second argument to `wordlist' function错误
  • 原文地址:https://www.cnblogs.com/szls-666/p/12494161.html
Copyright © 2011-2022 走看看