title: How to find spark master URL on Amazon EMR
body: <p>I am new to spark and trying to install spark on Amazon cluster with version 1.3.1. when i do </p>
  
  <pre><code>SparkConf sparkConfig = new SparkConf().setAppName("SparkSQLTest").setMaster("local[2]");
  </code></pre>
  
  <p>it does work for me , however i came to know that this is for testing purpose i can set local[2]</p>
  
  <p>When  i tried to use cluster mode i changed it to </p>
  
  <pre><code>SparkConf sparkConfig = new SparkConf().setAppName("SparkSQLTest").setMaster("spark://localhost:7077");
  </code></pre>
  
  <p>with this i am getting below error</p>
  
  <p>Tried to associate with unreachable remote address [akka.tcp://sparkMaster@localhost:7077]. Address is now gated for 5000 ms, all messages to this address will be delivered to dead letters. Reason: Connection refused
  15/06/10 15:22:21 INFO client.AppClient$ClientActor: Connecting to master akka.tcp://sparkMaster@localhost:7077/user/Master..</p>
  
  <p>Could someone please let me how to set the master url. </p>