Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
fixing machine types for new dataproc default image
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmiro committed Mar 19, 2021
1 parent 860b79e commit ce2f89b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions samples/snippets/create_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def create_cluster(project_id, region, cluster_name):
"project_id": project_id,
"cluster_name": cluster_name,
"config": {
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-1"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-1"},
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-2"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-2"},
},
}

Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/quickstart/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def quickstart(project_id, region, cluster_name, job_file_path):
"project_id": project_id,
"cluster_name": cluster_name,
"config": {
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-1"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-1"},
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-2"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-2"},
},
}

Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/submit_job_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
'config': {
'master_config': {
'num_instances': 1,
'machine_type_uri': 'n1-standard-1'
'machine_type_uri': 'n1-standard-2'
},
'worker_config': {
'num_instances': 2,
'machine_type_uri': 'n1-standard-1'
'machine_type_uri': 'n1-standard-2'
}
}
}
Expand Down

0 comments on commit ce2f89b

Please sign in to comment.