PAUSED state. You can execute PAUSE ROUTINE LOAD to pause a Routine Load job.
After successfully altering a Routine Load job, you can:
- Check the modifications made to the Routine Load job by using SHOW ROUTINE LOAD.
- Resume the Routine Load job by using RESUME ROUTINE LOAD.
You can manage Routine Load jobs that run on tables only as a user who has the INSERT privilege on those tables. If you do not have the INSERT privilege, follow the instructions provided in GRANT to grant the INSERT privilege to the user that you use to connect to your cluster.
Syntax
Parameters
-
[<db_name>.]<job_name>db_name: Optional. The name of the database.job_name: Required. The name of the Routine Load job to be altered.
-
load_propertiesThe properties of the source data to be loaded. The syntax is as follows:For detailed parameter descriptions, see CREATE ROUTINE LOAD. -
job_propertiesThe properties of the load job. The syntax is as follows:Only the following parameters can be altered:-
desired_concurrent_numberormax_concurrency -
max_error_numberormax_error_rows -
max_batch_intervalorload_interval -
max_batch_rowsorerror_window_rows -
task_consume_secondormax_consume_duration -
task_timeout_secondorload_timeout -
max_batch_size -
jsonpaths -
json_root -
strip_outer_array -
strict_mode -
timezone
-
-
data_sourceanddata_source_properties-
data_sourceRequired. The source of the data you want to load. Valid value:KAFKA. -
data_source_propertiesThe properties of the data source. Currently, only the following properties can be altered:kafka_partitionsandkafka_offsets: By default, StarRocks only supports modifying the offset of Kafka partitions that have already been consumed and does not support adding new Kafka partitions. Ifproperty.kafka_partition_discoveryis set totruein the same statement, the listed partitions are validated against the Kafka topic instead, so offsets can also be specified for partitions beyond the pinned list.property.*: Custom parameters for the data source Kafka, such asproperty.kafka_default_offsets. Note thatproperty.kafka_partition_discoverycan only be set totrue, which unpins the partition list specified at job creation and re-enables automatic partition discovery. Setting it back tofalseis not supported; recreate the job to pin partitions again.
-
Examples
-
The following example increases the value of the property
desired_concurrent_numberof the load job to5in order to increase the parallelism of load tasks. -
The following example alters the load job’s properties and data source information at the same time.
-
The following example alters the filtering condition and the database partitions that data is loaded into at the same time.