ALTER-ROUTINE-LOAD
ALTER ROUTINE LOAD
Description
This syntax is used to modify the routine load jobs that have been created.
Only jobs in PAUSED state can be modified.
ALTER ROUTINE LOAD FOR [db.]job_name
[job_properties]
FROM data_source
[data_source_properties]-
[db.]job_nameSpecify the job name to be modified.
-
tbl_nameSpecify the name of the table to be loaded.
-
job_propertiesSpecify the job parameters to be modified. Currently only the following parameters can be modified:
desired_concurrent_numbermax_error_numbermax_batch_intervalmax_batch_rowsmax_batch_sizejsonpathsjson_rootstrip_outer_arraystrict_modetimezone
-
data_sourceData source type. Currently support:
KAFKA
-
data_source_propertiesRelated properties of the data source. Currently only support:
kafka_partitionskafka_offsets- Customize property, such as
property.group.id
Note:
kafka_partitionsandkafka_offsetsare used to modify the offset of kafka partition to be consumed, only the partition that has already consumed can be modified. It is allowed to add new partition.
Example
-
Modify
desired_concurrent_numberas 1ALTER ROUTINE LOAD FOR db1.label1 PROPERTIES ( "desired_concurrent_number" = "1" ); -
Modify
desired_concurrent_numberas 10, modify the offset of partition, modify group id.ALTER ROUTINE LOAD FOR db1.label1 PROPERTIES ( "desired_concurrent_number" = "10" ) FROM kafka ( "kafka_partitions" = "0, 1, 2", "kafka_offsets" = "100, 200, 100", "property.group.id" = "new_group" );
Keywords
ALTER, ROUTINE, LOADBest Practices
This command can be used to correct the offset of consumption, or modify the mapping, transformation and filtering rules of columns after the Kafka data format is changed.
