Support Questions
Find answers, ask questions, and share your expertise

Web Page - Onclick HTML Button Execute Spark Jobs

Web Page - Onclick HTML Button Execute Spark Jobs

Contributor

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??

Thanks

Sridhar

1 REPLY 1

Re: Web Page - Onclick HTML Button Execute Spark Jobs

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.