GitHub user AhyoungRyu opened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/738

    Enable user to change shell interpreter command timeout property

    ### What is this PR for?
    Although Shell Interpreter has already have [command timeout 
property](https://github.com/apache/incubator-zeppelin/blob/master/shell/src/main/java/org/apache/zeppelin/shell/ShellInterpreter.java#L49),
 users can not change this property via Zeppelin UI. So I added some code lines 
to `ShellInterpreter.java` so that users can change this value at the 
interpreter setting tab.
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    * [x] - Enable user to change shell interpreter command timeout property
    * [x] - Fix a dead link in `interpreter.java`
    
    ### Is there a relevant Jira issue?
    Nope
    
    ### How should this be tested?
    After applying this PR, you can make `%sh` interpreter at the Zeppelin 
interpreter setting section. 
      1. Change `shell.command.timeout.millisecs` 600000(default value) -> 5000 
so that you can check quickly
      2. Run 
    
      * **Success Case**
      
      ```
      %sh
      date && sleep 3 && date
      ```
      
      then you can get a result as below 
      
      ```
      Mon Feb 22 18:25:00 KST 2016
      Mon Feb 22 18:25:03 KST 2016
      ExitValue: 143
      ```
      
      * **Error Case(because of timeout property)**
      
      ```
      %sh
      date && sleep 6 && date
      ```
      
      then you can get a result as below 
      
      ```
      Mon Feb 22 18:25:00 KST 2016
      Paragraph received a SIGTERM.
      ExitValue: 143
      ```
    
    ### Screenshots (if appropriate)
    **Before**
    ![screen shot 2016-02-22 at 7 01 32 
pm](https://cloud.githubusercontent.com/assets/10060731/13215178/efbcd26a-d996-11e5-96dd-1fc01a6c96ea.png)
    
    **After**
    ![screen shot 2016-02-22 at 6 57 29 
pm](https://cloud.githubusercontent.com/assets/10060731/13215151/ccbdd62e-d996-11e5-81e5-0eda4de7603d.png)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/AhyoungRyu/incubator-zeppelin shell-timeout

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-zeppelin/pull/738.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #738
    
----
commit b16211dc4bc9bbda714a0f87245025781599fd3f
Author: AhyoungRyu <fbdkdu...@hanmail.net>
Date:   2016-02-22T09:36:05Z

    Enable user to change shell interpreter timeout property

commit 3b4faec18b4e2ddb18a271272fc8828f5e438205
Author: AhyoungRyu <fbdkdu...@hanmail.net>
Date:   2016-02-22T09:37:28Z

    Fix reference link in interpreter.java

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to