We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3acb8e commit 85a2412Copy full SHA for 85a2412
scripts/distribution/run_gcp_quickstart.sh
@@ -55,10 +55,10 @@ function check_dataproc_job_state() {
55
exit 1
56
fi
57
echo -e "${GREEN} <<<<<<<<<<<<<<<<-----------------JOB STATUS----------------->>>>>>>>>>>>>>>>>\033[0m"
58
- JOB_STATE=$(gcloud dataproc jobs describe $JOB_ID --region=us-central1 --format=flattened | grep "status.state:")
+ JOB_STATE=$(gcloud dataproc jobs describe $JOB_ID --region=us-central1 --format=flattened | grep "status.state:" | awk '{print $NF}')
59
echo $JOB_STATE
60
# TODO: this doesn't actually fail. need to fix.
61
- if [ -z "$JOB_STATE" ]; then
+ if [ -z "$JOB_STATE" ] || [ "$JOB_STATE" == "ERROR" ]; then
62
echo -e "${RED} <<<<<<<<<<<<<<<<-----------------JOB FAILED!----------------->>>>>>>>>>>>>>>>>\033[0m"
63
64
0 commit comments