is the group.id
setting, a unique string
that identifies the consumer group this consumer
belongs to.
is the zookeeper.connect
setting,
a list of host/port pairs to use for establishing
the initial connection to the Zookeeper cluster.
is the consumer.id
setting, a unique string
that identifies the consumer (will be autogenerated if not set).
is the socket.timeout.ms
setting,
the socket timeout for network requests.
is the socket.receive.buffer.bytes
setting, the size of the socket receive buffer for network requests.
is the fetch.message.max.bytes
setting, the maximum amount of data per-partition the
server will return.
is the num.consumer.fetchers
setting,
the number of fetcher threads to spawn.
is the auto.commit.enable
setting.
If true the consumer's offset will be periodically committed
in the background.
is the auto.commit.interval.ms
setting,
the frequency of autocommits.
is the queued.max.message.chunks
setting, the maximum number of message chunks that consumer
may buffer.
is the rebalance.max.retries
setting,
the number of attempts to rebalance the consumer group when a new
consumer joins.
is the fetch.min.bytes
setting,
the minimum amount of data the server should return
for a fetch request.
is the fetch.wait.max.ms
setting,
the maximum amount of time the server will block before
answering the fetch request if there isn't sufficient data to
immediately satisfy the requirement given by fetch.min.bytes.
is the rebalance.backoff.m
setting.
The amount of time to wait before attempting to rebalance the
consumer group.
is the refresh.leader.backoff.ms
setting. The amount of time to wait before trying to elect
a new leader for a consumer group that has lost one.
is the auto.offset.reset
setting,
specifying what to do when there is no initial offset in
Kafka or if the current offset does not exist any more
on the server (e.g. because that data has been deleted).
is the consumer.timeout.ms
setting,
which specifies the amount of time to wait before throwing
an exception when there's nothing to consume.
is the exclude.internal.topics
setting.
Whether records from internal topics (such as offsets) should be
exposed to the consumer. If set to true the only way to receive
records from an internal topic is subscribing to it.
is the partition.assignment.strategy
setting, which chooses how partitions will be assigned to consumer
streams (range
or roundrobin
). Note that roundrobin
strategy
results in a more even load distribution, but will not work when
consuming from multiple topics.
is the client.id
setting,
an id string to pass to the server when making requests.
The purpose of this is to be able to track the source of
requests beyond just ip/port by allowing a logical application
name to be included in server-side request logging.
is the zookeeper.session.timeout.ms
setting, the maximum amount of time to wait for a heartbeat before
initiating a rebalance.
is the zookeeper.connection.timeout.ms
setting, the maximum amount of time the client will wait to
establish a connection to ZooKeeper.
is the zookeeper.sync.time.ms
setting,
the maximum lag allowed for ZK followers.
is the offsets.storage
setting, that controls
where offsets are stored (zookeeper
or kafka
).
is the offsets.channel.backoff.ms
setting, the backoff period when reconnecting the offsets channel
or retrying failed offset fetch/commit requests.
is the offsets.channel.socket.timeout.ms
setting. Socket timeout when reading responses for offset fetch/commit
requests.
is the offsets.commit.max.retries
setting,
The maximum amount of retries for commiting the offset. This retry
count only applies to offset commits during shut-down. It does not
apply to commits originating from the auto-commit thread.
is the dual.commit.enabled
setting, which
can be used to dual commit offsets to ZooKeeper if using
kafka
as offsets.storage
. This is required during migration
from ZooKeeper-based offset storage to Kafka-based offset storage.
is the auto.commit.enable
setting.
is the auto.commit.enable
setting.
If true the consumer's offset will be periodically committed
in the background.
is the auto.commit.interval.ms
setting,
the frequency of autocommits.
is the auto.offset.reset
setting,
specifying what to do when there is no initial offset in
Kafka or if the current offset does not exist any more
on the server (e.g.
is the auto.offset.reset
setting,
specifying what to do when there is no initial offset in
Kafka or if the current offset does not exist any more
on the server (e.g. because that data has been deleted).
is the client.id
setting,
an id string to pass to the server when making requests.
is the client.id
setting,
an id string to pass to the server when making requests.
The purpose of this is to be able to track the source of
requests beyond just ip/port by allowing a logical application
name to be included in server-side request logging.
is the consumer.id
setting, a unique string
that identifies the consumer (will be autogenerated if not set).
is the consumer.timeout.ms
setting,
which specifies the amount of time to wait before throwing
an exception when there's nothing to consume.
is the dual.commit.enabled
setting, which
can be used to dual commit offsets to ZooKeeper if using
kafka
as offsets.storage
.
is the dual.commit.enabled
setting, which
can be used to dual commit offsets to ZooKeeper if using
kafka
as offsets.storage
. This is required during migration
from ZooKeeper-based offset storage to Kafka-based offset storage.
is the exclude.internal.topics
setting.
is the exclude.internal.topics
setting.
Whether records from internal topics (such as offsets) should be
exposed to the consumer. If set to true the only way to receive
records from an internal topic is subscribing to it.
is the fetch.message.max.bytes
setting, the maximum amount of data per-partition the
server will return.
is the fetch.min.bytes
setting,
the minimum amount of data the server should return
for a fetch request.
is the fetch.wait.max.ms
setting,
the maximum amount of time the server will block before
answering the fetch request if there isn't sufficient data to
immediately satisfy the requirement given by fetch.min.bytes.
is the group.id
setting, a unique string
that identifies the consumer group this consumer
belongs to.
is the num.consumer.fetchers
setting,
the number of fetcher threads to spawn.
is the offsets.channel.backoff.ms
setting, the backoff period when reconnecting the offsets channel
or retrying failed offset fetch/commit requests.
is the offsets.channel.socket.timeout.ms
setting.
is the offsets.channel.socket.timeout.ms
setting. Socket timeout when reading responses for offset fetch/commit
requests.
is the offsets.commit.max.retries
setting,
The maximum amount of retries for commiting the offset.
is the offsets.commit.max.retries
setting,
The maximum amount of retries for commiting the offset. This retry
count only applies to offset commits during shut-down. It does not
apply to commits originating from the auto-commit thread.
is the offsets.storage
setting, that controls
where offsets are stored (zookeeper
or kafka
).
is the partition.assignment.strategy
setting, which chooses how partitions will be assigned to consumer
streams (range
or roundrobin
).
is the partition.assignment.strategy
setting, which chooses how partitions will be assigned to consumer
streams (range
or roundrobin
). Note that roundrobin
strategy
results in a more even load distribution, but will not work when
consuming from multiple topics.
is the queued.max.message.chunks
setting, the maximum number of message chunks that consumer
may buffer.
is the rebalance.backoff.m
setting.
is the rebalance.backoff.m
setting.
The amount of time to wait before attempting to rebalance the
consumer group.
is the rebalance.max.retries
setting,
the number of attempts to rebalance the consumer group when a new
consumer joins.
is the refresh.leader.backoff.ms
setting.
is the refresh.leader.backoff.ms
setting. The amount of time to wait before trying to elect
a new leader for a consumer group that has lost one.
is the socket.receive.buffer.bytes
setting, the size of the socket receive buffer for network requests.
is the socket.timeout.ms
setting,
the socket timeout for network requests.
is the zookeeper.connect
setting,
a list of host/port pairs to use for establishing
the initial connection to the Zookeeper cluster.
is the zookeeper.connection.timeout.ms
setting, the maximum amount of time the client will wait to
establish a connection to ZooKeeper.
is the zookeeper.session.timeout.ms
setting, the maximum amount of time to wait for a heartbeat before
initiating a rebalance.
is the zookeeper.sync.time.ms
setting,
the maximum lag allowed for ZK followers.
Configuration for Kafka Consumer.
For the official documentation on the available configuration options, see Consumer Configs on
kafka.apache.org
.is the
group.id
setting, a unique string that identifies the consumer group this consumer belongs to.is the
zookeeper.connect
setting, a list of host/port pairs to use for establishing the initial connection to the Zookeeper cluster.is the
consumer.id
setting, a unique string that identifies the consumer (will be autogenerated if not set).is the
socket.timeout.ms
setting, the socket timeout for network requests.is the
socket.receive.buffer.bytes
setting, the size of the socket receive buffer for network requests.is the
fetch.message.max.bytes
setting, the maximum amount of data per-partition the server will return.is the
num.consumer.fetchers
setting, the number of fetcher threads to spawn.is the
auto.commit.enable
setting. If true the consumer's offset will be periodically committed in the background.is the
auto.commit.interval.ms
setting, the frequency of autocommits.is the
queued.max.message.chunks
setting, the maximum number of message chunks that consumer may buffer.is the
rebalance.max.retries
setting, the number of attempts to rebalance the consumer group when a new consumer joins.is the
fetch.min.bytes
setting, the minimum amount of data the server should return for a fetch request.is the
fetch.wait.max.ms
setting, the maximum amount of time the server will block before answering the fetch request if there isn't sufficient data to immediately satisfy the requirement given by fetch.min.bytes.is the
rebalance.backoff.m
setting. The amount of time to wait before attempting to rebalance the consumer group.is the
refresh.leader.backoff.ms
setting. The amount of time to wait before trying to elect a new leader for a consumer group that has lost one.is the
auto.offset.reset
setting, specifying what to do when there is no initial offset in Kafka or if the current offset does not exist any more on the server (e.g. because that data has been deleted).is the
consumer.timeout.ms
setting, which specifies the amount of time to wait before throwing an exception when there's nothing to consume.is the
exclude.internal.topics
setting. Whether records from internal topics (such as offsets) should be exposed to the consumer. If set to true the only way to receive records from an internal topic is subscribing to it.is the
partition.assignment.strategy
setting, which chooses how partitions will be assigned to consumer streams (range
orroundrobin
). Note thatroundrobin
strategy results in a more even load distribution, but will not work when consuming from multiple topics.is the
client.id
setting, an id string to pass to the server when making requests. The purpose of this is to be able to track the source of requests beyond just ip/port by allowing a logical application name to be included in server-side request logging.is the
zookeeper.session.timeout.ms
setting, the maximum amount of time to wait for a heartbeat before initiating a rebalance.is the
zookeeper.connection.timeout.ms
setting, the maximum amount of time the client will wait to establish a connection to ZooKeeper.is the
zookeeper.sync.time.ms
setting, the maximum lag allowed for ZK followers.is the
offsets.storage
setting, that controls where offsets are stored (zookeeper
orkafka
).is the
offsets.channel.backoff.ms
setting, the backoff period when reconnecting the offsets channel or retrying failed offset fetch/commit requests.is the
offsets.channel.socket.timeout.ms
setting. Socket timeout when reading responses for offset fetch/commit requests.is the
offsets.commit.max.retries
setting, The maximum amount of retries for commiting the offset. This retry count only applies to offset commits during shut-down. It does not apply to commits originating from the auto-commit thread.is the
dual.commit.enabled
setting, which can be used to dual commit offsets to ZooKeeper if usingkafka
asoffsets.storage
. This is required during migration from ZooKeeper-based offset storage to Kafka-based offset storage.