Skip to content

Commit

Permalink
Added master opts parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Douglas R. de Oliveira committed May 1, 2014
1 parent 6c34671 commit d6c5d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ec2/deploy.generic/root/spark-ec2/ec2-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export SHARK_VERSION="{{shark_version}}"
export HADOOP_MAJOR_VERSION="{{hadoop_major_version}}"
export SWAP_MB="{{swap}}"
export SPARK_WORKER_INSTANCES="{{spark_worker_instances}}"

export SPARK_MASTER_OPTS="{{spark_master_opts}}"
6 changes: 5 additions & 1 deletion ec2/spark_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def parse_args():
help="Launch fresh slaves, but use an existing stopped master if possible")
parser.add_option("--worker-instances", type="int", default=1,
help="Number of instances per worker: variable SPARK_WORKER_INSTANCES (default: 1)")
parser.add_option("--master-opts", type="string", default="",
help="Extra options to give to master through SPARK_MASTER_OPTS variable (e.g -Dspark.worker.timeout=180)")



(opts, args) = parser.parse_args()
Expand Down Expand Up @@ -555,7 +558,8 @@ def deploy_files(conn, root_dir, opts, master_nodes, slave_nodes, modules):
"spark_version": spark_v,
"shark_version": shark_v,
"hadoop_major_version": opts.hadoop_major_version,
"spark_worker_instances": "%d" % opts.worker_instances
"spark_worker_instances": "%d" % opts.worker_instances,
"spark_master_opts": opts.master_opts
}

# Create a temp directory in which we will place all the files to be
Expand Down

0 comments on commit d6c5d65

Please sign in to comment.