spark-jobserver provides a RESTful interface for submitting and managing Apache Spark jobs, jars, and job contexts.
Reference: https://github.com/spark-jobserver/spark-jobserver
RealTime Example: https://nishutayaltech.blogspot.com/2016/05/how-to-run-spark-job-server-and-spark.html