layout: page title: “Shell interpreter for Apache Zeppelin” description: “Shell interpreter uses Apache Commons Exec to execute external processes.” group: interpreter

{% 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 the user Zeppelin server is running as.

Configuration

At the “Interpreters” menu in Zeppelin dropdown menu, you can set the property value for Shell interpreter.

Example

The following example demonstrates the basic usage of Shell in a Zeppelin notebook.

If you need further information about Zeppelin Interpreter Setting for using Shell interpreter, please read What is interpreter setting? section first.