Fix formatting for gcloud dataflow job launch command (#924)
This fix is to prevent errors similar to "ERROR: (gcloud.dataflow.jobs.run) unrecognized arguments: df-loading@tf-pso-workshop-test.iam.gserviceaccount.com" when copy pasting the example code. Line 8 misses a space between the statement and line break, leading to missing a space between parameters when evaluated by the gcloud command.
This commit is contained in:
parent
2c83b9179a
commit
b021d84633
|
@ -145,13 +145,13 @@ Once this is done, the 3 files necessary to run the Dataflow Job will have been
|
|||
|
||||
Run the following command to start the dataflow job:
|
||||
|
||||
gcloud --impersonate-service-account=orchestrator@$SERVICE_PROJECT_ID.iam.gserviceaccount.com dataflow jobs run test_batch_01 \
|
||||
gcloud --impersonate-service-account=orchestrator@$SERVICE_PROJECT_ID.iam.gserviceaccount.com dataflow jobs run test_batch_01 \
|
||||
--gcs-location gs://dataflow-templates/latest/GCS_Text_to_BigQuery \
|
||||
--project $SERVICE_PROJECT_ID \
|
||||
--region europe-west1 \
|
||||
--disable-public-ips \
|
||||
--subnetwork https://www.googleapis.com/compute/v1/projects/$SERVICE_PROJECT_ID/regions/europe-west1/subnetworks/subnet \
|
||||
--staging-location gs://$PREFIX-df-tmp\
|
||||
--staging-location gs://$PREFIX-df-tmp \
|
||||
--service-account-email df-loading@$SERVICE_PROJECT_ID.iam.gserviceaccount.com \
|
||||
--parameters \
|
||||
javascriptTextTransformFunctionName=transform,\
|
||||
|
|
Loading…
Reference in New Issue