kazanzhy commented on PR #20119:
URL: https://github.com/apache/airflow/pull/20119#issuecomment-1183062134

   here's the part of my DAG
   ```
   from airflow.providers.google.cloud.operators.dataproc import 
ClusterGenerator,DataprocCreateClusterOperator
   
   with DAG(**dag_args, default_args=default_task_args) as dag:
       dataproc_cluster = ClusterGenerator(
           project_id=project_id,
           storage_bucket='gs://...',
           num_masters=3,
           master_machine_type='ns-standard-4',
           master_disk_size=1000,
           num_workers=160,
           worker_machine_type='ns-standard-2',
           worker_disk_size=100,
           num_preemptible_workers=0,
           image_version="2.0.28-debian10",
           auto_delete_ttl=3600,
           subnetwork_uri='default',
           properties={
               'dataproc:dataproc.logging.stackdriver.job.driver.enable': 
"true",
               
'dataproc:dataproc.logging.stackdriver.job.yarn.container.enable': "true",
           },
       )
       create_dataproc_cluster = DataprocCreateClusterOperator(
           task_id='create_dataproc_cluster',
           project_id=project_id,
           cluster_name='on_demand_cluster',
           region=region,
           labels=labels,
           gcp_conn_id=gcp_connection_id,
           cluster_config=dataproc_cluster.make()
       )
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to