Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
47507d69
Commit
47507d69
authored
12 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
Made region used by spark-ec2 configurable.
parent
bf2e9cb0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ec2/spark_ec2.py
+4
-2
4 additions, 2 deletions
ec2/spark_ec2.py
with
4 additions
and
2 deletions
ec2/spark_ec2.py
+
4
−
2
View file @
47507d69
...
...
@@ -59,7 +59,9 @@ def parse_args():
"
WARNING: must be 64-bit; small instances won
'
t work
"
)
parser
.
add_option
(
"
-m
"
,
"
--master-instance-type
"
,
default
=
""
,
help
=
"
Master instance type (leave empty for same as instance-type)
"
)
parser
.
add_option
(
"
-z
"
,
"
--zone
"
,
default
=
"
us-east-1b
"
,
parser
.
add_option
(
"
-r
"
,
"
--region
"
,
default
=
"
us-east-1
"
,
help
=
"
EC2 region zone to launch instances in
"
)
parser
.
add_option
(
"
-z
"
,
"
--zone
"
,
default
=
""
,
help
=
"
Availability zone to launch instances in
"
)
parser
.
add_option
(
"
-a
"
,
"
--ami
"
,
default
=
"
latest
"
,
help
=
"
Amazon Machine Image ID to use, or
'
latest
'
to use latest
"
+
...
...
@@ -470,7 +472,7 @@ def ssh(host, opts, command):
def
main
():
(
opts
,
action
,
cluster_name
)
=
parse_args
()
conn
=
boto
.
connect_
ec2
(
)
conn
=
boto
.
ec2
.
connect_
to_region
(
opts
.
region
)
# Select an AZ at random if it was not specified.
if
opts
.
zone
==
""
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment