mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
### What is this PR for? Small refactoring to Shell interpreter. Add missing unit test and initial doc. ### What type of PR is it? Improvement, Documentation, Refactoring ### Todos * [ ] - Task ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/ * Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. [ZEPPELIN-533] ### How should this be tested? Outline the steps to test the PR here. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: fvaleri <fedevaleri@gmail.com> Closes #1087 from fvaleri/shell-intepreter-test and squashes the following commits:56bb663[fvaleri] re-trigger CIe4b25ef[fvaleri] re-trigger CI9b9487b[fvaleri] re-trigger CI03d073f[fvaleri] remove unused imports7c42733[fvaleri] Add new interpreter registration mechanismc069074[fvaleri] rebase
679 B
679 B
| layout | title | description | group |
|---|---|---|---|
| page | Shell Interpreter | Shell Interpreter | manual |
{% include JB/setup %}
Shell interpreter for Apache Zeppelin
Overview
Shell interpreter uses Apache Commons Exec to execute external processes.
In Zeppelin notebook, you can use %sh in the beginning of a paragraph to invoke system shell and run commands.
Note: Currently each command runs as Zeppelin user.
Example
The following example demonstrates the basic usage of Shell in a Zeppelin notebook.