conduktor.io ↗

Kafka Exception InternalTopicsAlreadySetupException

org.apache.kafka.streams.errors.InternalTopicsAlreadySetupException
Non-retriable Streams

InternalTopicsAlreadySetupException is a Kafka client-side exception (org.apache.kafka.streams.errors.InternalTopicsAlreadySetupException).

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.streams.errors.InternalTopicsAlreadySetupException: All internal topics for the Kafka Streams application already exist on the brokers. at org.apache.kafka.streams.KafkaStreams.init(KafkaStreams.java:1402) at com.example.streams.App.bootstrap(App.java:71) at com.example.streams.App.main(App.java:42)

Diagnostic Commands

kafka-topics.sh --bootstrap-server localhost:9092 --list | grep '^<application.id>-' # internal topics created by this app kafka-streams-application-reset.sh --application-id <id> --bootstrap-servers localhost:9092 --dry-run # preview which internal topics would be deleted

Related

Related Streams exceptions: BrokerNotFoundException · InvalidStateStoreException · InvalidStateStorePartitionException · LockException · MisconfiguredInternalTopicException · MissingInternalTopicsException · MissingSourceTopicException · ProcessorStateException

Hitting InternalTopicsAlreadySetupException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.