From 2124563a0006a4d7cd667787633befe80ce4b7fa Mon Sep 17 00:00:00 2001 From: Patrick Wendell Date: Tue, 11 Jun 2013 17:52:10 -0700 Subject: Remving support for old scripts --- ec2/spark_ec2.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'ec2/spark_ec2.py') diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index 5c9817113a..e4b31fcf71 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -431,25 +431,18 @@ def setup_cluster(conn, master_nodes, slave_nodes, zoo_nodes, opts, deploy_ssh_k if opts.ganglia: modules.append('ganglia') - if not opts.old_scripts: - # NOTE: We should clone the repository before running deploy_files to - # prevent ec2-variables.sh from being overwritten - # TODO: Before being merged this should be replaced with the correct repo, - # and likely a new branch (to allow backwards compatibility). - ssh(master, opts, "rm -rf spark-ec2 && git clone https://github.com/pwendell/spark-ec2.git -b ec2-updates") + # NOTE: We should clone the repository before running deploy_files to + # prevent ec2-variables.sh from being overwritten + # TODO: Before being merged this should be replaced with the correct repo, + # and likely a new branch (to allow backwards compatibility). + ssh(master, opts, "rm -rf spark-ec2 && git clone https://github.com/pwendell/spark-ec2.git -b ec2-updates") print "Deploying files to master..." deploy_files(conn, "deploy.generic", opts, master_nodes, slave_nodes, zoo_nodes, modules) print "Running setup on master..." - if opts.old_scripts: - if opts.cluster_type == "mesos": - setup_mesos_cluster(master, opts) - elif opts.cluster_type == "standalone": - setup_standalone_cluster(master, slave_nodes, opts) - else: - setup_spark_cluster(master, opts) + setup_spark_cluster(master, opts) print "Done!" def setup_mesos_cluster(master, opts): -- cgit v1.2.3