Changing Partition Quantity
Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.
The changepartitionQuantity_sample.py file provides a code sample. Configure the following parameters in this file:
1 2 |
streamname = "" #Name of the running stream.
target_partition_count = "3" #Number of the target partitions.
|
After configuring the parameters, run the changepartitionQuantity_sample.py file to call changepartitionQuantity_test. The following is an example response:
1 2 3 4 5 |
{
"stream_name":"stream_name_test",
"current_partition_count":2
"target_partition_count":5
}
|
Last Article: Querying a Checkpoint
Next Article: Obtaining a Data Cursor
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.