
Apache Kafka TopicCreatePartitions
CertifiedIncrease the partition count of a Kafka topic
Apache Kafka TopicCreatePartitions
Increase the partition count of a Kafka topic
Grows a topic to a new total partition count using the Kafka AdminClient. Partition counts can only be increased, never decreased.
Fails with UnknownTopicOrPartitionException if the topic does not exist, or InvalidPartitionsException if totalPartitionCount is not greater than the current count.
type: io.kestra.plugin.kafka.TopicCreatePartitionsExamples
Scale out a tenant topic to 12 partitions
id: kafka_topic_create_partitions
namespace: company.team
tasks:
- id: create_partitions
type: io.kestra.plugin.kafka.TopicCreatePartitions
properties:
bootstrap.servers: localhost:9092
topic: tenant_acme_orders
totalPartitionCount: 12
Properties
properties *Requiredobject
Kafka AdminClient properties
Must include bootstrap.servers; accepts any Kafka AdminClient config. Provide base64-encoded content for ssl.keystore.location and ssl.truststore.location when using SSL.
topic *Requiredstring
Topic name
totalPartitionCount *Requiredintegerstring
New total partition count
Must be greater than the topic's current partition count.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
timeout string
PT30SAdminClient call timeout
Maximum duration to wait for each AdminClient operation to complete before failing the task. Defaults to PT30S (30 seconds).
Outputs
topic string
Topic name
totalPartitionCount integer
New total partition count