MaximeJumelle commented on issue #15652:
URL: https://github.com/apache/airflow/issues/15652#issuecomment-831967261


   I think this is related to the upgading between Airflow 1.x and Airflow 2.x, 
since I used the following code on Airflow 1.x.
   
   ```
   task_create_dataproc = DataprocClusterCreateOperator(
       task_id='create_dataproc',
       cluster_name="cluster-{{ ds_nodash }}",
       num_workers=2,
       zone="us-central1-a",
       master_machine_type='n1-standard-4',
       worker_machine_type='n1-standard-4',
       idle_delete_ttl=3600,
       dag=dag
   )
   ```
   
   I was confused because it asked me to put `region` instead of `zone` in 
versions 2.x, and I didn't see the change between region and zone because on 
the [example page for 
Dataproc](https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_modules/airflow/providers/google/cloud/example_dags/example_dataproc.html),
 there is a `ZONE` variable defined (but never used).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to