-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-1880] Fix shell interpreter output streaming result #1833
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
|
Tested but i also see the same result @astroshim has. |
|
Seems the streaming output works only once right after I start Zeppelin (or restart shell intp). Let me dig into more. Thanks for the review @astroshim @Leemoonsoo! |
|
@astroshim @Leemoonsoo I guess the issue that I told in the above is not a matter of Shell intp itself. I found wired behaviour of current streaming output feature. This occurs in If I use only Spark, it's streaming output works properly like below.
But if I use Spark -> Shell -> Spark intp, then Spark's streaming output also doesn't work. @Leemoonsoo Are there any suspicious points in this problem? I tested also in |
|
I tested and I also faced the problem in this branch. (It is same problem with above @AhyoungRyu's comment.) |
|
@soralee Thanks for testing it out. Right I think the rerunning issue is due to that I mentioned in this comment. @astroshim @Leemoonsoo BTW just to be making sure, did you build this branch including shell interpreter like |
### What is this PR for?
If you run the following code, then streaming output doesn't work properly from the second run.
```
%spark.pyspark
import time
print("1")
time.sleep(2)
print("2")
time.sleep(2)
print("3")
time.sleep(2)
print("4")
```
This problem comes from the order of `paragraph update` event timing and `paragraph update-append` event timing is incorrect.
and This PR will fix also #1833 too.
### What type of PR is it?
Bug Fix
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1994
### How should this be tested?
- run several times pyspark interpreter with above code.
### 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: astroshim <[email protected]>
Closes #1927 from astroshim/ZEPPELIN-1994 and squashes the following commits:
c7baa59 [astroshim] fix streaming output problem
### What is this PR for?
If you run the following code, then streaming output doesn't work properly from the second run.
```
%spark.pyspark
import time
print("1")
time.sleep(2)
print("2")
time.sleep(2)
print("3")
time.sleep(2)
print("4")
```
This problem comes from the order of `paragraph update` event timing and `paragraph update-append` event timing is incorrect.
and This PR will fix also #1833 too.
### What type of PR is it?
Bug Fix
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1994
### How should this be tested?
- run several times pyspark interpreter with above code.
### 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: astroshim <[email protected]>
Closes #1927 from astroshim/ZEPPELIN-1994 and squashes the following commits:
c7baa59 [astroshim] fix streaming output problem
(cherry picked from commit 1a1fbc4)
Signed-off-by: ahyoungryu <[email protected]>
af30e87 to
8fe33c4
Compare
|
I rebased from master after #1922 and #1927 merged. Both are fixing the problem that I mentioned in this comment. Here is the screenshot. @astroshim Thanks again for the fix!! |
|
@astroshim @Leemoonsoo @soralee If you don't mind, can someone help review this again? :) |
|
LGTM it's working well. |
|
Tested and it works very well! |
|
Tested. LGTM |
|
Thanks all you guys for testing it out! |
### 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?
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
What is the Jira issue?
ZEPPELIN-1880
How should this be tested?
the each timestamp must be printed as streaming output
Screenshots (if appropriate)
before

after

Questions: