Hey,
You can launch spark application in four modes:
spark-shell –master local[1]
spark-submit –class com.df.SparkWordCount SparkWC.jar local[1]
spark-shell –master spark://hduser:7077
spark-submit –class com.df.SparkWordCount SparkWC.jar spark://hduser:7077
spark-shell –master yarn
or
spark-shell –master yarn –deploy-mode client
spark-shell –master mesos://HOST:5050