How to run zeppelin notebook from command line (automatically)

前端 未结 2 876
别那么骄傲
别那么骄傲 2021-01-12 23:50
  1. How do we run the notebook from command line?

  2. Further to 1, how would I pass command line arguments into the notebook? I.e. access the command line

2条回答
  •  不知归路
    2021-01-13 00:44

    As of version 0.7.3 and perhaps earlier, Zeppelin has a REST API that lets you run notebooks. Your shell script can use curl to access the API.

    The API includes methods to delete a paragraph and to insert a paragraph at a particular index. This allows you to express all your "parameters" as variables in paragraph 0 and then use them in later paragraphs. Make 3 calls to the REST API in this order:

    1. Delete the notebook's current paragraph 0.
    2. Insert a new paragraph containing variable assignments at index 0.
    3. Run the notebook.

提交回复
热议问题