title: How to connect to Spark EMR from the locally running Spark Shell
body: <p>I have created a Spark EMR cluster. I would like to execute jobs either on my localhost or EMR cluster.</p>
  
  <p>Assuming I run spark-shell on my local computer how can I tell it to connect to the Spark EMR cluster, what would be the exact configuration options and/or commands to run.</p>