Below code is basic example of spark launcher.This can be used if spark job has to be launched through some application.
val sparkLauncher = new SparkLauncher
//Set Spark properties.only Basic ones are shown here.It will be overridden if properties are set in Main class.
sparkLauncher.setSparkHom...