Skip to content

Commit a0bf1d5

Browse files
committed
Add shell.html to _navigation.html
1 parent 9fe99bc commit a0bf1d5

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

docs/_includes/themes/zeppelin/_navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<li><a href="{{BASE_PATH}}/interpreter/postgresql.html">Postgresql, HAWQ</a></li>
6565
<li><a href="{{BASE_PATH}}/interpreter/r.html">R</a></li>
6666
<li><a href="{{BASE_PATH}}/interpreter/scalding.html">Scalding</a></li>
67-
<li><a href="{{BASE_PATH}}/pleasecontribute.html">Shell</a></li>
67+
<li><a href="{{BASE_PATH}}/interpreter/shell.html">Shell</a></li>
6868
<li><a href="{{BASE_PATH}}/interpreter/spark.html">Spark</a></li>
6969
</ul>
7070
</li>

docs/interpreter/shell.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,39 @@
22
layout: page
33
title: "Shell Interpreter"
44
description: "Shell Interpreter"
5-
group: manual
5+
group: interpreter
66
---
77
{% include JB/setup %}
88

9-
## Shell interpreter for Apache Zeppelin
9+
# Shell interpreter for Apache Zeppelin
1010

11-
### Overview
12-
Shell interpreter uses [Apache Commons Exec](https://commons.apache.org/proper/commons-exec) to execute external processes.
11+
<div id="toc"></div>
1312

13+
## Overview
14+
Shell interpreter uses [Apache Commons Exec](https://commons.apache.org/proper/commons-exec) to execute external processes.
1415
In Zeppelin notebook, you can use ` %sh ` in the beginning of a paragraph to invoke system shell and run commands.
15-
Note: Currently each command runs as Zeppelin user.
1616

17-
### Example
17+
> **Note :** Currently each command runs as Zeppelin user.
18+
19+
## Configuration
20+
At the "Interpreters" menu in Zeppelin dropdown menu, you can set the property value for Shell interpreter.
21+
22+
<table class="table-configuration">
23+
<tr>
24+
<th>Name</th>
25+
<th>Value</th>
26+
<th>Description</th>
27+
</tr>
28+
<tr>
29+
<td>shell.command.timeout.millisecs</td>
30+
<td>60000</td>
31+
<td>Shell command time out in millisecs</td>
32+
</tr>
33+
</table>
34+
35+
## Example
1836
The following example demonstrates the basic usage of Shell in a Zeppelin notebook.
1937

20-
<img src="{{BASE_PATH}}/assets/themes/zeppelin/img/docs-img/shell-example.png" width="70%" />
38+
<img src="{{BASE_PATH}}/assets/themes/zeppelin/img/docs-img/shell-example.png" />
39+
40+
If you need further information about **Zeppelin Interpreter Setting** for using Shell interpreter, please read [What is interpreter setting?](../manual/interpreters.html#what-is-interpreter-setting) section first.

0 commit comments

Comments
 (0)