title: how to run multi node on the spark-shell?
body: <p>I have been using <code>spark-submit</code> to test my codes on the multi-nodes system.
  (Of course, I specified the master option as the master server address to achieve multi-nodes environment).
  However, instead of using <code>spark-submit</code>, I would like to use spark-shell to test my codes on the cluster system. However, I don't know how to configure multi-nodes clusters settings on the spark-shell?</p>
  
  <p>I think that just using spark-shell without changing any setups will results in the local mode.</p>
  
  <p>I tried to search the info and followed the below commands.</p>
  
  <pre><code>scala&gt; sc.stop()
  ...
  
  scala&gt; import org.apache.spark.{SparkContext, SparkConf}
  import org.apache.spark.{SparkContext, SparkConf}
  
  scala&gt; val sc = new SparkContext(new SparkConf().setAppName("shell").setMaster("my server address"))
  ...
  
  scala&gt; import org.apache.spark.sql.SQLContext
  import org.apache.spark.sql.SQLContext
  
  scala&gt; val sqlContext = new SQLContext(sc)
  sqlContext: org.apache.spark.sql.SQLContext = org.apache.spark.sql.SQLContext@567a2954
  </code></pre>
  
  <p>However, I am quite sure that I am doing right behavior for the multi-node cluster setup using spark-shell.</p>