Skip to content
Permalink
Browse files
fix: (samples) fixing samples for new machine types (#150)
Dataproc 2.0 is the new default image which does not support n1-standard-1.

Fixes #147, #148, #149
  • Loading branch information
bradmiro committed Mar 26, 2021
1 parent 806f83d commit 334366546501833149479556b55bfbc3c9562236
Showing with 6 additions and 6 deletions.
  1. +2 −2 samples/snippets/create_cluster.py
  2. +2 −2 samples/snippets/quickstart/quickstart.py
  3. +2 −2 samples/snippets/submit_job_test.py
@@ -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"},
},
}

@@ -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"},
},
}

@@ -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'
}
}
}

0 comments on commit 3343665

Please sign in to comment.