Support ALTER ROUTINE LOAD JOB stmt, for example: ``` alter routine load db1.label1 properties ( "desired_concurrent_number"="3", "max_batch_interval" = "5", "max_batch_rows" = "300000", "max_batch_size" = "209715200", "strict_mode" = "false", "timezone" = "+08:00" ) ``` Details can be found in `alter-routine-load.md`
2.6 KiB
2.6 KiB
title, language
| title | language |
|---|---|
| ALTER ROUTINE LOAD | zh-CN |
ALTER ROUTINE LOAD
description
该语法用于修改已经创建的例行导入作业。
只能修改处于 PAUSED 状态的作业。
语法:
ALTER ROUTINE LOAD FOR [db.]job_name
[job_properties]
FROM data_source
[data_source_properties]
-
[db.]job_name指定要修改的作业名称。
-
tbl_name指定需要导入的表的名称。
-
job_properties指定需要修改的作业参数。目前仅支持如下参数的修改:
desired_concurrent_numbermax_error_numbermax_batch_intervalmax_batch_rowsmax_batch_sizejsonpathsjson_rootstrip_outer_arraystrict_modetimezone
-
data_source数据源的类型。当前支持:
KAFKA
-
data_source_properties数据源的相关属性。目前仅支持:
kafka_partitionskafka_offsets- 自定义 property,如
property.group.id
注:
kafka_partitions和kafka_offsets用于修改待消费的 kafka partition 的offset,仅能修改当前已经消费的 partition。不能新增 partition。
example
-
将
desired_concurrent_number修改为 1ALTER ROUTINE LOAD FOR db1.label1 PROPERTIES ( "desired_concurrent_number" = "1" ); -
将
desired_concurrent_number修改为 10,修改 partition 的offset,修改 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" );
keyword
ALTER,ROUTINE,LOAD