You are viewing documentation for an older version (0.7) of Kafka. For up-to-date documentation, see the latest version.
Important configuration properties for the high-level consumer
Important configuration properties for the high-level consumer:
More details about consumer configuration can be found in the scala class kafka.consumer.ConsumerConfig.
property | default | description |
|---|---|---|
| groupid | is a string that uniquely identifies a set of consumers within the same consumer group. |
| 30000 | controls the socket timeout for network requests |
| 64*1024 | controls the socket receive buffer for network requests |
| 300 * 1024 | controls the number of bytes of messages to attempt to fetch in one request to the Kafka server |
| 1000 | This parameter avoids repeatedly polling a broker node which has no new data. We will backoff every time we get an empty set from the broker for this time period |
| 100 | the high level consumer buffers the messages fetched from the server internally in blocking queues. This parameter controls the size of those queues |
| true | if set to true, the consumer periodically commits to zookeeper the latest consumed offset of each partition. |
| 10000 | is the frequency that the consumed offsets are committed to zookeeper. |
| smallest |
|
| -1 | By default, this value is -1 and a consumer blocks indefinitely if no new message is available for consumption. By setting the value to a positive integer, a timeout exception is thrown to the consumer if no message is available for consumption after the specified timeout value. |
| 4 | max number of retries during rebalance |
| "" | Whitelist of topics for this mirror’s embedded consumer to consume. At most one of whitelist/blacklist may be specified. |
| "" | Topics to skip mirroring. At most one of whitelist/blacklist may be specified |
| 4 | The number of threads to be used per topic for the mirroring consumer, by default |