1

我在使用 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

4

1 回答 1

2

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

group.max.session.timeout.ms

如果未设置,默认值为 30000ms。

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

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

于 2017-02-09T08:23:15.330 回答