【问题标题】:org.apache.kafka.common.errors.ApiException: The session timeout is not within an acceptable rangeorg.apache.kafka.common.errors.ApiException:会话超时不在可接受的范围内
【发布时间】:2017-02-09 16:23:15
【问题描述】:

我在使用 kafka 0.9.0.1 的消费者中遇到了上述异常。根据这个线程[1],我在 server.properties 文件中看不到“group.max.session.timeout.ms”属性。

org.apache.kafka.common.errors.ApiException: The session timeout is not within an acceptable range

有什么线索吗?

[1]http://comments.gmane.org/gmane.comp.apache.kafka.user/12426

【问题讨论】:

    标签: apache-kafka kafka-consumer-api kafka-producer-api


    【解决方案1】:

    kafka中有一个服务端配置限制了最大超时值:

    group.max.session.timeout.ms
    

    不设置则默认为30000ms。

    这位于“/config/server.properties”中。

    将其设置为高于您的消费者超时时间的值,您会没事的。

    【讨论】:

      猜你喜欢
      • 2012-08-11
      • 1970-01-01
      • 2014-02-14
      • 2015-12-10
      • 1970-01-01
      • 2017-06-29
      • 1970-01-01
      • 1970-01-01
      • 2014-06-18
      相关资源
      最近更新 更多