Interface StreamsConfigFields<T extends StreamsConfigFields<T>>
- All Known Implementing Classes:
BaseStreamsConfigBuilder,StreamsConfigBuilder
-
Method Summary
Modifier and TypeMethodDescriptionacceptableRecoveryLag(Long value) acceptable.recovery.lagapplicationId(String value) application.idapplicationServer(String value) application.serverbootstrapServers(String value) bootstrap.serversbootstrapServers(List<String> value) bootstrap.serversbuffered.records.per.partitionbuiltInMetricsVersion(String value) built.in.metrics.versioncacheMaxBytesBuffering(Long value) cache.max.bytes.bufferingclient.idcommitIntervalMs(Long value) commit.interval.msconnectionsMaxIdleMs(Long value) connections.max.idle.msdefault.deserialization.exception.handlerdefaultDslStore(String value) default.dsl.storedefaultKeySerde(Class value) default.key.serdedefaultListKeySerdeInner(Class value) default.list.key.serde.innerdefaultListKeySerdeType(Class value) default.list.key.serde.typedefaultListValueSerdeInner(Class value) default.list.value.serde.innerdefaultListValueSerdeType(Class value) default.list.value.serde.typedefault.production.exception.handlerdefaultTimestampExtractor(Class value) default.timestamp.extractordefaultValueSerde(Class value) default.value.serdemaxTaskIdleMs(Long value) max.task.idle.msmaxWarmupReplicas(Integer value) max.warmup.replicasmetadataMaxAgeMs(Long value) metadata.max.age.msmetricReporters(String value) metric.reportersmetricReporters(List<String> value) metric.reportersmetricsNumSamples(Integer value) metrics.num.samplesmetricsRecordingLevel(String value) metrics.recording.levelmetricsSampleWindowMs(Long value) metrics.sample.window.msnumStandbyReplicas(Integer value) num.standby.replicasnumStreamThreads(Integer value) num.stream.threadspoll.msprobingRebalanceIntervalMs(Long value) probing.rebalance.interval.msprocessingGuarantee(String value) processing.guaranteerackAwareAssignmentTags(String value) rack.aware.assignment.tagsrackAwareAssignmentTags(List<String> value) rack.aware.assignment.tagsreceiveBufferBytes(Integer value) receive.buffer.bytesreconnectBackoffMaxMs(Long value) reconnect.backoff.max.msreconnectBackoffMs(Long value) reconnect.backoff.msrepartitionPurgeIntervalMs(Long value) repartition.purge.interval.msreplicationFactor(Integer value) replication.factorrequestTimeoutMs(Integer value) request.timeout.msretriesretryBackoffMs(Long value) retry.backoff.msrocksdbConfigSetter(Class value) rocksdb.config.settersecurityProtocol(String value) security.protocoldefault Tself()sendBufferBytes(Integer value) send.buffer.bytesstateCleanupDelayMs(Long value) state.cleanup.delay.msstate.dirtaskTimeoutMs(Long value) task.timeout.mstopologyOptimization(String value) topology.optimizationupgradeFrom(String value) upgrade.fromwindowedInnerClassSerde(String value) windowed.inner.class.serdewindowSizeMs(Long value) window.size.mswindowstore.changelog.additional.retention.ms
-
Method Details
-
applicationId
application.id
An identifier for the stream processing application.
Must be unique within the Kafka cluster.
It is used as 1) the default client-id prefix, 2) the group-id for membership management, 3) the changelog topic prefix.Default:
Valid Values:
Importance: high
-
bootstrapServers
bootstrap.servers
A list of host/port pairs to use for establishing the initial connection to the Kafka cluster.
The client will make use of all servers irrespective of which servers are specified here for bootstrapping—this list only impacts the initial hosts used to discover the full set of servers.
This list should be in the formhost1:port1,host2:port2,....
Since these servers are just used for the initial connection to discover the full cluster membership (which may change dynamically), this list need not contain the full set of servers (you may want more than one, though, in case a server is down).Default:
Valid Values:
Importance: high
-
bootstrapServers
bootstrap.servers
A list of host/port pairs to use for establishing the initial connection to the Kafka cluster.
The client will make use of all servers irrespective of which servers are specified here for bootstrapping—this list only impacts the initial hosts used to discover the full set of servers.
This list should be in the formhost1:port1,host2:port2,....
Since these servers are just used for the initial connection to discover the full cluster membership (which may change dynamically), this list need not contain the full set of servers (you may want more than one, though, in case a server is down).Default:
Valid Values:
Importance: high
-
numStandbyReplicas
num.standby.replicas
The number of standby replicas for each task.Default: 0
Valid Values:
Importance: high
-
stateDir
state.dir
Directory location for state store.
This path must be unique for each streams instance sharing the same underlying filesystem.Default: /tmp/kafka-streams
Valid Values:
Importance: high
-
acceptableRecoveryLag
acceptable.recovery.lag
The maximum acceptable lag (number of offsets to catch up) for a client to be considered caught-up enough to receive an active task assignment.
Upon assignment, it will still restore the rest of the changelog before processing.
To avoid a pause in processing during rebalances, this config should correspond to a recovery time of well under a minute for a given workload.
Must be at least 0.Default: 10000
Valid Values: [0,...]
Importance: medium
-
cacheMaxBytesBuffering
cache.max.bytes.buffering
Maximum number of memory bytes to be used for buffering across all threadsDefault: 10485760
Valid Values: [0,...]
Importance: medium
-
clientId
client.id
An ID prefix string used for the client IDs of internal consumer, producer and restore-consumer, with pattern '<client.id>-StreamThread--<consumer|producer|restore-consumer>'. Default: ""
Valid Values:
Importance: medium
-
defaultDeserializationExceptionHandler
default.deserialization.exception.handler
Exception handling class that implements theorg.apache.kafka.streams.errors.DeserializationExceptionHandlerinterface.Default: org.apache.kafka.streams.errors.LogAndFailExceptionHandler
Valid Values:
Importance: medium
-
defaultKeySerde
default.key.serde
Default serializer / deserializer class for key that implements theorg.apache.kafka.common.serialization.Serdeinterface.
Note when windowed serde class is used, one needs to set the inner serde class that implements theorg.apache.kafka.common.serialization.Serdeinterface via 'default.windowed.key.serde.inner' or 'default.windowed.value.serde.inner' as wellDefault: null
Valid Values:
Importance: medium
-
defaultListKeySerdeInner
default.list.key.serde.inner
Default inner class of list serde for key that implements theorg.apache.kafka.common.serialization.Serdeinterface.
This configuration will be read if and only ifdefault.key.serdeconfiguration is set toorg.apache.kafka.common.serialization.Serdes.ListSerdeDefault: null
Valid Values:
Importance: medium
-
defaultListValueSerdeInner
default.list.value.serde.inner
Default inner class of list serde for value that implements theorg.apache.kafka.common.serialization.Serdeinterface.
This configuration will be read if and only ifdefault.value.serdeconfiguration is set toorg.apache.kafka.common.serialization.Serdes.ListSerdeDefault: null
Valid Values:
Importance: medium
-
defaultListKeySerdeType
default.list.key.serde.type
Default class for key that implements thejava.util.Listinterface.
This configuration will be read if and only ifdefault.key.serdeconfiguration is set toorg.apache.kafka.common.serialization.Serdes.ListSerdeNote when list serde class is used, one needs to set the inner serde class that implements theorg.apache.kafka.common.serialization.Serdeinterface via 'default.list.key.serde.inner'Default: null
Valid Values:
Importance: medium
-
defaultListValueSerdeType
default.list.value.serde.type
Default class for value that implements thejava.util.Listinterface.
This configuration will be read if and only ifdefault.value.serdeconfiguration is set toorg.apache.kafka.common.serialization.Serdes.ListSerdeNote when list serde class is used, one needs to set the inner serde class that implements theorg.apache.kafka.common.serialization.Serdeinterface via 'default.list.value.serde.inner'Default: null
Valid Values:
Importance: medium
-
defaultProductionExceptionHandler
default.production.exception.handler
Exception handling class that implements theorg.apache.kafka.streams.errors.ProductionExceptionHandlerinterface.Default: org.apache.kafka.streams.errors.DefaultProductionExceptionHandler
Valid Values:
Importance: medium
-
defaultTimestampExtractor
default.timestamp.extractor
Default timestamp extractor class that implements theorg.apache.kafka.streams.processor.TimestampExtractorinterface.Default: org.apache.kafka.streams.processor.FailOnInvalidTimestamp
Valid Values:
Importance: medium
-
defaultValueSerde
default.value.serde
Default serializer / deserializer class for value that implements theorg.apache.kafka.common.serialization.Serdeinterface.
Note when windowed serde class is used, one needs to set the inner serde class that implements theorg.apache.kafka.common.serialization.Serdeinterface via 'default.windowed.key.serde.inner' or 'default.windowed.value.serde.inner' as wellDefault: null
Valid Values:
Importance: medium
-
maxTaskIdleMs
max.task.idle.ms
This config controls whether joins and merges may produce out-of-order results.
The config value is the maximum amount of time in milliseconds a stream task will stay idle when it is fully caught up on some (but not all) input partitions to wait for producers to send additional records and avoid potential out-of-order record processing across multiple input streams.
The default (zero) does not wait for producers to send more records, but it does wait to fetch data that is already present on the brokers.
This default means that for records that are already present on the brokers, Streams will process them in timestamp order.
Set to -1 to disable idling entirely and process any locally available data, even though doing so may produce out-of-order processing.Default: 0
Valid Values:
Importance: medium
-
maxWarmupReplicas
max.warmup.replicas
The maximum number of warmup replicas (extra standbys beyond the configured num.standbys) that can be assigned at once for the purpose of keeping the task available on one instance while it is warming up on another instance it has been reassigned to.
Used to throttle how much extra broker traffic and cluster state can be used for high availability.
Must be at least 1.Default: 2
Valid Values: [1,...]
Importance: medium
-
numStreamThreads
num.stream.threads
The number of threads to execute stream processing.Default: 1
Valid Values:
Importance: medium
-
processingGuarantee
processing.guarantee
The processing guarantee that should be used.
Possible values areat_least_once(default) andexactly_once_v2(requires brokers version 2.5 or higher).
Deprecated options areexactly_once(requires brokers version 0.11.0 or higher) andexactly_once_beta(requires brokers version 2.5 or higher).
Note that exactly-once processing requires a cluster of at least three brokers by default what is the recommended setting for production; for development you can change this, by adjusting broker settingtransaction.state.log.replication.factorandtransaction.state.log.min.isr.Default: at_least_once
Valid Values: [at_least_once, exactly_once, exactly_once_beta, exactly_once_v2]
Importance: medium
-
rackAwareAssignmentTags
rack.aware.assignment.tags
List of client tag keys used to distribute standby replicas across Kafka Streams instances.
When configured, Kafka Streams will make a best-effort to distribute the standby tasks over each client tag dimension.Default: ""
Valid Values: List containing maximum of 5 elements
Importance: medium
-
rackAwareAssignmentTags
rack.aware.assignment.tags
List of client tag keys used to distribute standby replicas across Kafka Streams instances.
When configured, Kafka Streams will make a best-effort to distribute the standby tasks over each client tag dimension.Default: ""
Valid Values: List containing maximum of 5 elements
Importance: medium
-
replicationFactor
replication.factor
The replication factor for change log topics and repartition topics created by the stream processing application.
The default of-1(meaning: use broker default replication factor) requires broker version 2.4 or newerDefault: -1
Valid Values:
Importance: medium
-
securityProtocol
security.protocol
Protocol used to communicate with brokers.
Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL.Default: PLAINTEXT
Valid Values: [PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL]
Importance: medium
-
taskTimeoutMs
task.timeout.ms
The maximum amount of time in milliseconds a task might stall due to internal errors and retries until an error is raised.
For a timeout of 0ms, a task would raise an error for the first internal error.
For any timeout larger than 0ms, a task will retry at least once before an error is raised.Default: 300000 (5 minutes)
Valid Values: [0,...]
Importance: medium
-
topologyOptimization
topology.optimization
A configuration telling Kafka Streams if it should optimize the topology, disabled by defaultDefault: none
Valid Values: [none, all]
Importance: medium
-
applicationServer
application.server
A host:port pair pointing to a user-defined endpoint that can be used for state store discovery and interactive queries on this KafkaStreams instance.Default: ""
Valid Values:
Importance: low
-
bufferedRecordsPerPartition
buffered.records.per.partition
Maximum number of records to buffer per partition.Default: 1000
Valid Values:
Importance: low
-
builtInMetricsVersion
built.in.metrics.version
Version of the built-in metrics to use.Default: latest
Valid Values: [latest]
Importance: low
-
commitIntervalMs
commit.interval.ms
The frequency in milliseconds with which to commit processing progress.
For at-least-once processing, committing means to save the position (ie, offsets) of the processor.
For exactly-once processing, it means to commit the transaction which includes to save the position and to make the committed data in the output topic visible to consumers with isolation level read_committed.
(Note, ifprocessing.guaranteeis set toexactly_once_v2,exactly_once,the default value is100, otherwise the default value is30000.Default: 30000 (30 seconds)
Valid Values: [0,...]
Importance: low
-
repartitionPurgeIntervalMs
repartition.purge.interval.ms
The frequency in milliseconds with which to delete fully consumed records from repartition topics.
Purging will occur after at least this value since the last purge, but may be delayed until later.
(Note, unlikecommit.interval.ms, the default for this value remains unchanged whenprocessing.guaranteeis set toexactly_once_v2).Default: 30000 (30 seconds)
Valid Values: [0,...]
Importance: low
-
connectionsMaxIdleMs
connections.max.idle.ms
Close idle connections after the number of milliseconds specified by this config.Default: 540000 (9 minutes)
Valid Values:
Importance: low
-
defaultDslStore
default.dsl.store
The default state store type used by DSL operators.Default: rocksDB
Valid Values: [rocksDB, in_memory]
Importance: low
-
metadataMaxAgeMs
metadata.max.age.ms
The period of time in milliseconds after which we force a refresh of metadata even if we haven't seen any partition leadership changes to proactively discover any new brokers or partitions.Default: 300000 (5 minutes)
Valid Values: [0,...]
Importance: low
-
metricsNumSamples
metrics.num.samples
The number of samples maintained to compute metrics.Default: 2
Valid Values: [1,...]
Importance: low
-
metricReporters
metric.reporters
A list of classes to use as metrics reporters.
Implementing theorg.apache.kafka.common.metrics.MetricsReporterinterface allows plugging in classes that will be notified of new metric creation.
The JmxReporter is always included to register JMX statistics.Default: ""
Valid Values:
Importance: low
-
metricReporters
metric.reporters
A list of classes to use as metrics reporters.
Implementing theorg.apache.kafka.common.metrics.MetricsReporterinterface allows plugging in classes that will be notified of new metric creation.
The JmxReporter is always included to register JMX statistics.Default: ""
Valid Values:
Importance: low
-
metricsRecordingLevel
metrics.recording.level
The highest recording level for metrics.Default: INFO
Valid Values: [INFO, DEBUG, TRACE]
Importance: low
-
metricsSampleWindowMs
metrics.sample.window.ms
The window of time a metrics sample is computed over.Default: 30000 (30 seconds)
Valid Values: [0,...]
Importance: low
-
pollMs
poll.ms
The amount of time in milliseconds to block waiting for input.Default: 100
Valid Values:
Importance: low
-
probingRebalanceIntervalMs
probing.rebalance.interval.ms
The maximum time in milliseconds to wait before triggering a rebalance to probe for warmup replicas that have finished warming up and are ready to become active.
Probing rebalances will continue to be triggered until the assignment is balanced.
Must be at least 1 minute.Default: 600000 (10 minutes)
Valid Values: [60000,...]
Importance: low
-
receiveBufferBytes
receive.buffer.bytes
The size of the TCP receive buffer (SO_RCVBUF) to use when reading data.
If the value is -1, the OS default will be used.Default: 32768 (32 kibibytes)
Valid Values: [-1,...]
Importance: low
-
reconnectBackoffMs
reconnect.backoff.ms
The base amount of time to wait before attempting to reconnect to a given host.
This avoids repeatedly connecting to a host in a tight loop.
This backoff applies to all connection attempts by the client to a broker.Default: 50
Valid Values: [0,...]
Importance: low
-
reconnectBackoffMaxMs
reconnect.backoff.max.ms
The maximum amount of time in milliseconds to wait when reconnecting to a broker that has repeatedly failed to connect.
If provided, the backoff per host will increase exponentially for each consecutive connection failure, up to this maximum.
After calculating the backoff increase, 20% random jitter is added to avoid connection storms.Default: 1000 (1 second)
Valid Values: [0,...]
Importance: low
-
retries
retries
Setting a value greater than zero will cause the client to resend any request that fails with a potentially transient error.
It is recommended to set the value to either zero or `MAX_VALUE` and use corresponding timeout parameters to control how long a client should retry a request.Default: 0
Valid Values: [0,...,2147483647]
Importance: low
-
retryBackoffMs
retry.backoff.ms
The amount of time to wait before attempting to retry a failed request to a given topic partition.
This avoids repeatedly sending requests in a tight loop under some failure scenarios.Default: 100
Valid Values: [0,...]
Importance: low
-
requestTimeoutMs
request.timeout.ms
The configuration controls the maximum amount of time the client will wait for the response of a request.
If the response is not received before the timeout elapses the client will resend the request if necessary or fail the request if retries are exhausted.Default: 40000 (40 seconds)
Valid Values: [0,...]
Importance: low
-
rocksdbConfigSetter
rocksdb.config.setter
A Rocks DB config setter class or class name that implements theorg.apache.kafka.streams.state.RocksDBConfigSetterinterfaceDefault: null
Valid Values:
Importance: low
-
sendBufferBytes
send.buffer.bytes
The size of the TCP send buffer (SO_SNDBUF) to use when sending data.
If the value is -1, the OS default will be used.Default: 131072 (128 kibibytes)
Valid Values: [-1,...]
Importance: low
-
stateCleanupDelayMs
state.cleanup.delay.ms
The amount of time in milliseconds to wait before deleting state when a partition has migrated.
Only state directories that have not been modified for at leaststate.cleanup.delay.mswill be removedDefault: 600000 (10 minutes)
Valid Values:
Importance: low
-
upgradeFrom
upgrade.from
Allows upgrading in a backward compatible way.
This is needed when upgrading from [0.10.0, 1.1] to 2.0+, or when upgrading from [2.0, 2.3] to 2.4+.
When upgrading from 3.3 to a newer version it is not required to specify this config.
Default is `null`.
Accepted values are "0.10.0", "0.10.1", "0.10.2", "0.11.0", "1.0", "1.1", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "3.0", "3.1", "3.2" (for upgrading from the corresponding old version).Default: null
Valid Values: [null, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 1.0, 1.1, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 3.0, 3.1, 3.2]
Importance: low
-
windowedInnerClassSerde
windowed.inner.class.serde
Default serializer / deserializer for the inner class of a windowed record.
Must implement theorg.apache.kafka.common.serialization.Serdeinterface.
Note that setting this config in KafkaStreams application would result in an error as it is meant to be used only from Plain consumer client.Default: null
Valid Values:
Importance: low
-
windowstoreChangelogAdditionalRetentionMs
windowstore.changelog.additional.retention.ms
Added to a windows maintainMs to ensure data is not deleted from the log prematurely.
Allows for clock drift.
Default is 1 dayDefault: 86400000 (1 day)
Valid Values:
Importance: low
-
windowSizeMs
window.size.ms
Sets window size for the deserializer in order to calculate window end times.Default: null
Valid Values:
Importance: low
-
self
-