Skip to content

Conversation

@AhyoungRyu
Copy link
Contributor

What is this PR for?

After #611 merged, Zeppelin provides streaming output for spark and pyspark interpreter. For the further improvement, I changed a few code lines using InterpreterContext so that sh interpreter can be available too.

What type of PR is it?

Improvement

Todos

Is there a relevant Jira issue?

ZEPPELIN-646: Shell interpreter output streaming
ZEPPELIN-554: Streaming interpreter output to front-end

How should this be tested?

After applying this PR, run this below code with sh interpreter in Zeppelin.

date && sleep 3 &&  date

Then you can see two timestamps which have 3 seconds gap.

Screenshots (if appropriate)

shell_interpreter

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@corneadoug
Copy link
Contributor

After some search, it seems that the streaming output wasn't documented anywhere.
That could be valuable information for those making interpreter, but also to show possible streaming ability of Zeppelin.

@AhyoungRyu
Copy link
Contributor Author

@corneadoug Make sense. Then I'll write a new docs for ability of Zeppelin streaming output.

@felixcheung
Copy link
Member

cool @DarkMaN1

@Leemoonsoo
Copy link
Member

Yes it would be nice to document how to use InterpreterOutput when writing interpreter.
Maybe, the document can even link this PR's file diff to show how to change interpreter to leverage InterpreterOutput, as an example.

Anyway, LGTM

@AhyoungRyu
Copy link
Contributor Author

@Leemoonsoo Make sense. Then i'll add that content you mentioned in the docs : )

@Leemoonsoo
Copy link
Member

Merge if there're no more discussions.

@asfgit asfgit closed this in b50f438 Feb 9, 2016
asfgit pushed a commit that referenced this pull request Jan 24, 2017
### What is this PR for?
Shell interpreter streaming output had been available by #683, but currently it's broken after #1087 merged. This patch is for putting it back.

### What type of PR is it?
Bug Fix

### TODO
- [x] Fix test

### What is the Jira issue?
[ZEPPELIN-1880](https://issues.apache.org/jira/browse/ZEPPELIN-1880)

### How should this be tested?
```
%sh

date && sleep 3 && date
```

the each timestamp must be printed as streaming output

### Screenshots (if appropriate)
 - before
![shellintpresultbefore](https://cloud.githubusercontent.com/assets/10060731/21585515/60c35a04-d105-11e6-8e68-853ee784e89d.gif)

 - after
![shellintpresult](https://cloud.githubusercontent.com/assets/10060731/21585516/62142ac8-d105-11e6-8628-1d6eec35daae.gif)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: AhyoungRyu <[email protected]>

Closes #1833 from AhyoungRyu/ZEPPELIN-1880 and squashes the following commits:

8fe33c4 [AhyoungRyu] Fix invalid test cases
e2fd4bf [AhyoungRyu] Add test for shell inpt timeout property
34d3021 [AhyoungRyu] Fix shell intp streaming output result
asfgit pushed a commit that referenced this pull request Jan 24, 2017
### What is this PR for?
Shell interpreter streaming output had been available by #683, but currently it's broken after #1087 merged. This patch is for putting it back.

### What type of PR is it?
Bug Fix

### TODO
- [x] Fix test

### What is the Jira issue?
[ZEPPELIN-1880](https://issues.apache.org/jira/browse/ZEPPELIN-1880)

### How should this be tested?
```
%sh

date && sleep 3 && date
```

the each timestamp must be printed as streaming output

### Screenshots (if appropriate)
 - before
![shellintpresultbefore](https://cloud.githubusercontent.com/assets/10060731/21585515/60c35a04-d105-11e6-8e68-853ee784e89d.gif)

 - after
![shellintpresult](https://cloud.githubusercontent.com/assets/10060731/21585516/62142ac8-d105-11e6-8628-1d6eec35daae.gif)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: AhyoungRyu <[email protected]>

Closes #1833 from AhyoungRyu/ZEPPELIN-1880 and squashes the following commits:

8fe33c4 [AhyoungRyu] Fix invalid test cases
e2fd4bf [AhyoungRyu] Add test for shell inpt timeout property
34d3021 [AhyoungRyu] Fix shell intp streaming output result

(cherry picked from commit 9b4a1bf)
Signed-off-by: ahyoungryu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants