Trying out the Google Cloud Composer Quickstart in a free trial account, the example workflow DAG's first task runs this operator:
create_dataproc_cluster = dataproc_operator.DataprocClusterCreateOperator(
task_id='create_dataproc_cluster',
cluster_name='quickstart-cluster-{{ ds_nodash }}',
num_workers=2,
zone=models.Variable.get('gce_zone'),
master_machine_type='n1-standard-1',
worker_machine_type='n1-standard-1')
which fails with this error message:
- Insufficient 'CPUS' quota. Requested 6.0, available 2.0
- This request exceeds CPU quota. Some things to try: request fewer workers (a minimum of 2 is required), use smaller master and/or worker machine types (such as n1-standard-2).
2
is already the minimum number of worker nodes and n1-standard-1
is already the smallest machine type.
Q. Is there a way to get DataprocClusterCreateOperator()
to allocate a higher 'CPUS' Quota?
The Airflow website and Cloud Dataproc Quotas doc are not forthcoming.
Q. Is this a hard limit for a free trial account?
The IAM Quotas console page shows Current Usage as 6, 75%, at 3 of 4 bars, implying that the quota is 8.