Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zeppelin notebook execute not manual

is there a way to execute the spark code in a zeppelin notebook, without having to do it interactively? I'm looking for something specific or if anyone could point me in the correct direction. Or alternatively, other ways to submit spark code, which is currently in a zeppelin notebook. The reason I can't use spark-submit is that there is no command line access due to security reasons.

like image 867
uh_big_mike_boi Avatar asked Jan 01 '26 10:01

uh_big_mike_boi


1 Answers

Zeppelin provides REST API which, among other functions, can be used to run either individual paragraphs, either synchronously

http://[zeppelin-server]:[zeppelin-port]/api/notebook/run/[noteId]/[paragraphId]

or asynchronously

http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]/[paragraphId]

as well as whole notebook:

http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]

It is also possible to define CRON jobs, both from notebook itself and from the REST API.

like image 75
zero323 Avatar answered Jan 04 '26 16:01

zero323



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!