找到你要的答案

Q:Does the high-level consumer exploit the new offset management in Kafka 0.8.2?

Q:做高层次的消费者利用卡夫卡0.8.2新抵消管理?

In 0.8.2, it seems like committing offsets no longer has the same performance problems that it used to (http://blog.confluent.io/2014/12/02/whats-coming-in-apache-kafka-0-8-2/). Does the high level consumer also exploit this, or is it a separate API? I.e. can I safely start committing much more often when using the high-level consumer?

在0.8.2,好像犯偏移不再具有相同的性能问题,它用来(http:/ /博客。汇合。IO / 2014 / 12 / 02 / whats-coming-in-apache-kafka-0-8-2 /)。高层次的消费者也利用这个,还是它是一个单独的API?也就是说,我可以安全地开始更频繁地使用时,高层次的消费者?

answer1: 回答1:

I can't yet speak to the performance comparison with the Zookeeper offset storage, but the high level consumer does support storing offsets in Kafka with 0.8.2. You can configure it by setting the property offsets.storage to kafka. You will also want to set the property dual.commit.enabled to true during the migration process for any existing consumer groups currently committing offsets to Zookeeper.

See the Apache Kafka FAQ for details on migration.

我还不能说与管理员偏移存储性能的比较,但高水平的消费和不支持存储0.8抵消卡夫卡。你可以配置它的设置属性offsets.storage卡夫卡。你也会想要设置的属性dual.commit.enabled真正的任何现有的消费群体目前犯偏移的饲养员在迁移过程中。

查看Apache卡夫卡FAQ迁移。

apache-kafka  kafka-consumer-api