mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
shell interpreter doc
This commit is contained in:
parent
5190791c8f
commit
0a77e801e7
1 changed files with 23 additions and 0 deletions
|
|
@ -14,6 +14,29 @@ Shell interpreter uses [Apache Commons Exec](https://commons.apache.org/proper/c
|
|||
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.
|
||||
|
||||
|
||||
## Properties
|
||||
You can modify the interpreter configuration in the `Interpreter` section. The most common properties are as follows, but you can specify other properties that need to be connected.
|
||||
|
||||
<table class="table-configuration">
|
||||
<tr>
|
||||
<td>shell.command.timeout.millisecs</td>
|
||||
<td>Shell command time out in millisecs. Default = 60000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>shell.auth.type</td>
|
||||
<td>Types of authentications' methods supported are SIMPLE, and KERBEROS</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>shell.principal</td>
|
||||
<td>The principal name to load from the keytab</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>shell.keytab.location</td>
|
||||
<td>The path to the keytab file</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### Example
|
||||
The following example demonstrates the basic usage of Shell in a Zeppelin notebook.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue