title: Gcloud dataflow job failed to write to temp location
body: <p><a href="https://i.stack.imgur.com/kcWKY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kcWKY.png" alt="enter image description here"></a>I am invoking dataflow job using gcloud cli. My command looks like below;</p>
  
  <pre><code>gcloud dataflow jobs run avrojob4 \
  --gcs-location=gs://dataflow-templates/latest/Cloud_Bigtable_to_GCS_Avro \
  --region=europe-west1 \
  --parameters bigtableProjectId="project-id",bigtableInstanceId="instance-id",bigtableTableId="table-id",outputDirectory="gs://avro-data/avrojob4/",filenamePrefix="avrojob4-"
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>ERROR: Failed to write a file to temp location 'gs://dataflow-staging-us-central1-473832897378/temp/'. Please make sure that the bucket for this directory exists, and that the project under which the workflow is running has the necessary permissions to write to it.
  </code></pre>
  
  <p>Can someone help me how to pass temp location as specific value through above command?</p>