Skip to content

Commit

Permalink
[FLINK-35781][cli] Provide a default parallelism 1 for pipeline jobs
Browse files Browse the repository at this point in the history
This closes apache#3458.
  • Loading branch information
yuxiqian authored and qiaozongmi committed Sep 23, 2024
1 parent 104be20 commit 08ed217
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/content.zh/docs/core-concept/data-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ The following config options of Data Pipeline level are supported:
| parameter | meaning | optional/required |
|-----------------|-----------------------------------------------------------------------------------------|-------------------|
| name | The name of the pipeline, which will be submitted to the Flink cluster as the job name. | optional |
| parallelism | The global parallelism of the pipeline. | required |
| parallelism | The global parallelism of the pipeline. Defaults to 1. | optional |
| local-time-zone | The local time zone defines current session time zone id. | optional |
2 changes: 1 addition & 1 deletion docs/content/docs/core-concept/data-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ The following config options of Data Pipeline level are supported:
| parameter | meaning | optional/required |
|-----------------|-----------------------------------------------------------------------------------------|-------------------|
| name | The name of the pipeline, which will be submitted to the Flink cluster as the job name. | optional |
| parallelism | The global parallelism of the pipeline. | required |
| parallelism | The global parallelism of the pipeline. Defaults to 1. | optional |
| local-time-zone | The local time zone defines current session time zone id. | optional |
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class PipelineOptions {
public static final ConfigOption<Integer> PIPELINE_PARALLELISM =
ConfigOptions.key("parallelism")
.intType()
.noDefaultValue()
.defaultValue(1)
.withDescription("Parallelism of the pipeline");

public static final ConfigOption<SchemaChangeBehavior> PIPELINE_SCHEMA_CHANGE_BEHAVIOR =
Expand Down

0 comments on commit 08ed217

Please sign in to comment.