Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 09-21-2016 02:52 AM
Hi guys,
I have written spark job which read csv file and on top of csv data am calling dataframe api to extract the profile information.
I am manually submiting spark job by using spark-submit command but I want to write jersey rest api as wrapper on top of spark job and which is i have done but am not getting
How I should launch my spark job from rest service method?
I am giving call to rest api using tomcat,so is it possible to launch spark job in tomcat web application? If not then,
Is there any solution to achieve this functionality?
Thanks in advance.
Created 09-21-2016 02:56 AM
you can use spark job rest server which will allow you to submit the job using rest api.. please follow https://github.com/spark-jobserver/spark-jobserver
Created 09-21-2016 02:56 AM
you can use spark job rest server which will allow you to submit the job using rest api.. please follow https://github.com/spark-jobserver/spark-jobserver
Created 09-21-2016 03:06 AM
Thanks Rajkumar,
Do we need some extra configuration to have spark job server?
If yes,then what are those steps?
Can we pass command line option to curl call while submitting spark job?
Created 09-21-2016 03:25 AM
you dont need any configuration params and you can submit spark job using curl commands