-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-646: Shell interpreter output streaming #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
After some search, it seems that the streaming output wasn't documented anywhere. |
|
@corneadoug Make sense. Then I'll write a new docs for ability of Zeppelin streaming output. |
|
cool @DarkMaN1 |
|
Yes it would be nice to document how to use InterpreterOutput when writing interpreter. Anyway, LGTM |
|
@Leemoonsoo Make sense. Then i'll add that content you mentioned in the docs : ) |
|
Merge if there're no more discussions. |
### 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  - after  ### 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
### 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  - after  ### 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]>
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
InterpreterContextso 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
shinterpreter in Zeppelin.Then you can see two timestamps which have 3 seconds gap.
Screenshots (if appropriate)
Questions: