diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-01-26 15:08:12 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-01-26 15:08:12 +0100 |
commit | f1d310658f8f8d7b1c1c7cf802cb98a451a61ed1 (patch) | |
tree | 953780c981faa1608ed735e203bd55a5db56c407 /scripts/04-dataproc-create-cluster.sh | |
parent | e7bbd6ea60fc40e8d9a31ece57b1fcc7c170f0da (diff) |
Add debug env on scripts
Diffstat (limited to 'scripts/04-dataproc-create-cluster.sh')
-rwxr-xr-x | scripts/04-dataproc-create-cluster.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/04-dataproc-create-cluster.sh b/scripts/04-dataproc-create-cluster.sh index 8bdeccb..785949e 100755 --- a/scripts/04-dataproc-create-cluster.sh +++ b/scripts/04-dataproc-create-cluster.sh @@ -2,6 +2,10 @@ set -eu +if [ ${DEBUG:+1} ]; then + set -xo pipefail +fi + if [ "$#" -ne 3 ]; then echo "Usage: 'sh ${PWD}/$0 <num-workers> <master-machine> <worker-machine>'" exit 1 @@ -31,8 +35,8 @@ COMMON_PARAMS="\ --project=${PROJECT} \ --region=${REGION} \ --service-account=${SERVICE_ACCOUNT}@${PROJECT}.iam.gserviceaccount.com \ - --master-boot-disk-size=240 \ - --worker-boot-disk-size=240 \ + --master-boot-disk-size=400 \ + --worker-boot-disk-size=400 \ --worker-machine-type=${WORKER_MACHINE} \ --master-machine-type=${MASTER_MACHINE}" |