clj-zeppelin.core
create-note!
(create-note! notebook-server-url payload)
create a new note https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#create-a-new-note Returns the id of the new note
create-paragraph!
(create-paragraph! notebook-server-url note-id paragraph-data)
Creates a new paragraph, added to note-id. https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#create-a-new-paragraph returns paragraph id
delete-note!
(delete-note! notebook-server-url note-id)
deletes a note. Needs the note id as argument https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#delete-a-note Returns the status
get-paragraph-info
(get-paragraph-info notebook-server-url note-id paragraph-id)
returns information about a paragraph https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#get-a-paragraph-information Takes as arguments the notebook server, the note id and paragraph id
get-paragraph-status
(get-paragraph-status notebook-server-url note-id paragraph-id)
import-note!
(import-note!)
Imports a note https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#import-a-note Returns the id of the imported note
json-req
(json-req payload)
create a json string from a clojure map
list-notes
(list-notes notebook-server-url)
List the existing notes https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#list-of-the-notes
nbserver
run-all-paragraphs
(run-all-paragraphs notebook-server-url note-id)
runs all the paragraphs https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#run-all-paragraphs Returns status as a map
run-paragraph-async
(run-paragraph-async notebook-server-url note-id paragraph-id)
runs a paragraph asynchronously https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#run-a-paragraph-asynchronously Takes as arguments the notebook server, the note id and paragraph id. Returns immediately, and the status is usually PENDING
run-paragraph-sync
(run-paragraph-sync notebook-server-url note-id paragraph-id)
runs a paragraph synchronously https://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html#run-a-paragraph-synchronously Takes as arguments the notebook server, the note id and paragraph id. Returns after the paragraph completes execution