zeppelin/docs/interpreter/shell.md
fvaleri e575e812f0 Shell interpreter test and doc
### 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 CI
e4b25ef [fvaleri] re-trigger CI
9b9487b [fvaleri] re-trigger CI
03d073f [fvaleri] remove unused imports
7c42733 [fvaleri] Add new interpreter registration mechanism
c069074 [fvaleri] rebase
2016-07-01 14:55:49 +09:00

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.