I have created a simple web page using html tags like forms, tables etc.
Since Spark is used to real time streaming analysis, I am making use of HTML Form Buttons, to simulate spark streaming in real time.
Like, I want to run a job or execute ./spark-submit when I click a HTML Button (like submit button).
How to run a spark application, on clicking a HTML Button?
How to invoke a spark application from Web Page rather than command Line Terminal??
Please have a look at Apache Zeppelin which provides exactly that functionality.
Alternatively, you can create an HTTP servlet that uses the Scala or Java APIs to submit a job in response to GET/PUT/POST, etc. requests.