Skip to content

Commit d25f7bc

Browse files
author
Googler
committed
No public description
Signed-off-by: Googler <[email protected]> PiperOrigin-RevId: 821935037
1 parent 403f72a commit d25f7bc

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

components/google-cloud/RELEASE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Upcoming release
22

3+
* Add `autotuning_config` and `cohort` parameters to Dataproc v1 batch components.
4+
35
## Release 2.21.0
46

57
* Add psc_interface_config to v1 GCPC custom job components/utils

components/google-cloud/google_cloud_pipeline_components/v1/dataproc/create_pyspark_batch/component.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def dataproc_create_pyspark_batch(
3232
container_image: str = '',
3333
runtime_config_version: str = '',
3434
runtime_config_properties: Dict[str, str] = {},
35+
autotuning_config: Dict[str, str] = {},
36+
cohort: str = '',
3537
service_account: str = '',
3638
network_tags: List[str] = [],
3739
kms_key: str = '',
@@ -56,6 +58,8 @@ def dataproc_create_pyspark_batch(
5658
container_image: Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
5759
runtime_config_version: Version of the batch runtime.
5860
runtime_config_properties: Runtime configuration for the workload.
61+
autotuning_config: Autotuning configuration for the workload.
62+
cohort: Cohort identifier for the workload.
5963
service_account: Service account that is used to execute the workload.
6064
network_tags: Tags used for network traffic control.
6165
kms_key: The Cloud KMS key to use for encryption.
@@ -100,6 +104,11 @@ def dataproc_create_pyspark_batch(
100104
'"',
101105
', "properties": ',
102106
runtime_config_properties,
107+
', "autotuning_config": ',
108+
autotuning_config,
109+
', "cohort": "',
110+
cohort,
111+
'"',
103112
'}',
104113
', "environment_config": {',
105114
'"execution_config": {',

components/google-cloud/google_cloud_pipeline_components/v1/dataproc/create_spark_batch/component.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def dataproc_create_spark_batch(
3131
container_image: str = '',
3232
runtime_config_version: str = '',
3333
runtime_config_properties: Dict[str, str] = {},
34+
autotuning_config: Dict[str, str] = {},
35+
cohort: str = '',
3436
service_account: str = '',
3537
network_tags: List[str] = [],
3638
kms_key: str = '',
@@ -56,6 +58,8 @@ def dataproc_create_spark_batch(
5658
container_image: Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
5759
runtime_config_version: Version of the batch runtime.
5860
runtime_config_properties: Runtime configuration for the workload.
61+
autotuning_config: Autotuning configuration for the workload.
62+
cohort: Cohort identifier for the workload.
5963
service_account: Service account that is used to execute the workload.
6064
network_tags: Tags used for network traffic control.
6165
kms_key: The Cloud KMS key to use for encryption.
@@ -100,6 +104,11 @@ def dataproc_create_spark_batch(
100104
'"',
101105
', "properties": ',
102106
runtime_config_properties,
107+
', "autotuning_config": ',
108+
autotuning_config,
109+
', "cohort": "',
110+
cohort,
111+
'"',
103112
'}',
104113
', "environment_config": {',
105114
'"execution_config": {',

components/google-cloud/google_cloud_pipeline_components/v1/dataproc/create_spark_r_batch/component.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def dataproc_create_spark_r_batch(
3131
container_image: str = '',
3232
runtime_config_version: str = '',
3333
runtime_config_properties: Dict[str, str] = {},
34+
autotuning_config: Dict[str, str] = {},
35+
cohort: str = '',
3436
service_account: str = '',
3537
network_tags: List[str] = [],
3638
kms_key: str = '',
@@ -54,6 +56,8 @@ def dataproc_create_spark_r_batch(
5456
container_image: Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
5557
runtime_config_version: Version of the batch runtime.
5658
runtime_config_properties: Runtime configuration for the workload.
59+
autotuning_config: Autotuning configuration for the workload.
60+
cohort: Cohort identifier for the workload.
5761
service_account: Service account that is used to execute the workload.
5862
network_tags: Tags used for network traffic control.
5963
kms_key: The Cloud KMS key to use for encryption.
@@ -96,6 +100,11 @@ def dataproc_create_spark_r_batch(
96100
'"',
97101
', "properties": ',
98102
runtime_config_properties,
103+
', "autotuning_config": ',
104+
autotuning_config,
105+
', "cohort": "',
106+
cohort,
107+
'"',
99108
'}',
100109
', "environment_config": {',
101110
'"execution_config": {',

components/google-cloud/google_cloud_pipeline_components/v1/dataproc/create_spark_sql_batch/component.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def dataproc_create_spark_sql_batch(
3030
container_image: str = '',
3131
runtime_config_version: str = '',
3232
runtime_config_properties: Dict[str, str] = {},
33+
autotuning_config: Dict[str, str] = {},
34+
cohort: str = '',
3335
service_account: str = '',
3436
network_tags: List[str] = [],
3537
kms_key: str = '',
@@ -52,6 +54,8 @@ def dataproc_create_spark_sql_batch(
5254
container_image: Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
5355
runtime_config_version: Version of the batch runtime.
5456
runtime_config_properties: Runtime configuration for the workload.
57+
autotuning_config: Autotuning configuration for the workload.
58+
cohort: Cohort identifier for the workload.
5559
service_account: Service account that is used to execute the workload.
5660
network_tags: Tags used for network traffic control.
5761
kms_key: The Cloud KMS key to use for encryption.
@@ -93,6 +97,11 @@ def dataproc_create_spark_sql_batch(
9397
'"',
9498
', "properties": ',
9599
runtime_config_properties,
100+
', "autotuning_config": ',
101+
autotuning_config,
102+
', "cohort": "',
103+
cohort,
104+
'"',
96105
'}',
97106
', "environment_config": {',
98107
'"execution_config": {',

0 commit comments

Comments
 (0)