zoukankan      html  css  js  c++  java
  • 报错:Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

    报错背景:

    启动kafka消费者之后出现这种报错,持续打印相同信息。

    报错现象:

    [root@master kafka_2.11-1.1.1]# /opt/kafka/kafka_2.11-1.1.1/bin/kafka-console-consumer.sh --bootstrap-server master:9092 --topic alarmHis
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/bigdata/app/.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/bigdata/app/bigdata-1.0-SNAPSHOT-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/opt/kafka/kafka_2.11-1.1.1/libs/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
    [2019-05-23 08:35:56,555] WARN [Consumer clientId=consumer-1, groupId=console-consumer-68734] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
    [2019-05-23 08:35:56,608] WARN [Consumer clientId=consumer-1, groupId=console-consumer-68734] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
    [2019-05-23 08:35:56,709] WARN [Consumer clientId=consumer-1, groupId=console-consumer-68734] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
    [2019-05-23 08:35:56,911] WARN [Consumer clientId=consumer-1, groupId=console-consumer-68734] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
    [2019-05-23 08:35:57,364] WARN [Consumer clientId=consumer-1, groupId=console-consumer-68734] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

    报错原因:

    不明。

    报错解决:

  • 相关阅读:
    android高级UI之Draw绘制流程、Paint渲染高级应用
    android高级UI之UI绘制流程(测量布局)
    大数据JavaWeb之MySQL基础----多表&事务&DCL
    大数据JavaWeb之MySQL基础---数据库设计、备份与还原
    大数据JavaWeb之MySQL基础---约束
    大数据JavaWeb之MySQL基础---DDL&DQL
    大数据JavaWeb之MySQL基础---MySQL安装、SQL初识
    软引用示例演示与引用队列的作用分析
    Reference的四种状态转换关系分析
    【转】document.form.action,表单分向提交
  • 原文地址:https://www.cnblogs.com/chuijingjing/p/10909842.html
Copyright © 2011-2022 走看看