Files
doc-exports/docs/dli/umn/dli_03_0120.html
Su, Xiaomeng 3a07c40729 dli_umn_20250212
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2025-02-24 08:11:08 +00:00

1.1 KiB

How Do I Change the Number of Kafka Partitions in a Flink SQL Job Without Stopping It?

Symptom

You used Flink 1.10 to run a Flink Opensource SQL job. You set the number of Kafka partitions for the job a small value at the beginning and need to increase the number now.

Solution

Add the following parameters to the SQL statement:

connector.properties.flink.partition-discovery.interval-millis="3000" 

This statement allows you to increase or decrease the number of Kafka partitions without stopping the Flink job.