Skip to content
Browse files

do not allow user to start 0-slave cluster

  • Loading branch information...
1 parent 24a7c79 commit 9a7176963d4c55f5224458439b4c3550d23ea7f9 @CodingCat CodingCat committed Mar 3, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 ec2/spark_ec2.py
View
3 ec2/spark_ec2.py
@@ -678,6 +678,9 @@ def real_main():
opts.zone = random.choice(conn.get_all_zones()).name
if action == "launch":
+ if opts.slaves <= 0:
+ print "You have to start at least 1 slave"
+ sys.exit(1)
if opts.resume:
(master_nodes, slave_nodes) = get_existing_cluster(
conn, opts, cluster_name)

0 comments on commit 9a71769

Please sign in to comment.
Something went wrong with that request. Please try again.