I'm not sure if it's already answered. As I didn't get proper explanation, posting my question here.
Why kafka streams state.dir
is stored under /tmp/kafka-streams
?
I know I can change the path by providing the state dir config in the stream code like below
StreamsConfig.STATE_DIR_CONFIG,"/var/abc-Streams"
But will there be any impact of changing the directory?
or
Can I configure the state DB in an application directory and not in /tmp
.
As per the confluent documentation, for :
Stateful
operations :
automatically creates and manages such state stores when you are calling stateful operators such as count() or aggregate(), or when you are windowing a stream
but didn't specify where exactly it's being stored.
ANy thoughts?