title: Bootstrap Failure when trying to install Spark on EMR
body: <p>I am using this link to install Spark Cluster on EMR(Elastic Map Reduce on Amazon) <a href="https://aws.amazon.com/articles/Elastic-MapReduce/4926593393724923" rel="nofollow noreferrer">https://aws.amazon.com/articles/Elastic-MapReduce/4926593393724923</a></p>
  
  <p>For creating a Spark cluster I run the following command and my cluster is running into bootstrap failure every single time. I am not able to resolve this issue, and it will be great if any could help me here.</p>
  
  <pre><code>aws emr create-cluster --name SparkCluster --ami-version 3.2 \
  --instance-type m3.xlarge --instance-count 3 --ec2-attributes \
  KeyName=MYKEY --applications Name=Hive --bootstrap-actions \
  Path=s3://support.elasticmapreduce/spark/install-spark
  </code></pre>
  
  <p>SOLVED : Use this:</p>
  
  <pre><code>aws emr create-cluster --name SparkCluster --ami-version 3.7 \
  --instance-type m3.xlarge --instance-count 3 --service-role \
  EMR_DefaultRole --ec2-attributes \
  KeyName=emr,InstanceProfile=EMR_EC2_DefaultRole \
  --applications Name=Hive --bootstrap-actions \
  Path=s3://support.elasticmapreduce/spark/install-spark 
  </code></pre>