Skip to content

Commit

Permalink
Use --enable-component-gateway when creating the flink cluster (#33198)
Browse files Browse the repository at this point in the history
* Use --enable-component-gateway when creating the flink cluster

* Update flink_cluster.sh
  • Loading branch information
liferoad authored Nov 25, 2024
1 parent e5bd69d commit 60f8793
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .test-infra/dataproc/flink_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ function create_cluster() {

# Docker init action restarts yarn so we need to start yarn session after this restart happens.
# This is why flink init action is invoked last.
gcloud dataproc clusters create $CLUSTER_NAME --region=$GCLOUD_REGION --num-workers=$FLINK_NUM_WORKERS --public-ip-address \
--metadata "${metadata}", \
# TODO(11/22/2024) remove --worker-machine-type and --master-machine-type once N2 CPUs quota relaxed
# Dataproc 2.1 uses n2-standard-2 by default but there is N2 CPUs=24 quota limit for this project
gcloud dataproc clusters create $CLUSTER_NAME --enable-component-gateway --region=$GCLOUD_REGION --num-workers=$FLINK_NUM_WORKERS --public-ip-address \
--master-machine-type=n1-standard-2 --worker-machine-type=n1-standard-2 --metadata "${metadata}", \
--image-version=$image_version --zone=$GCLOUD_ZONE --optional-components=FLINK,DOCKER --quiet
}

Expand Down

0 comments on commit 60f8793

Please sign in to comment.