Skip to content

[ZEPPELIN-1991] Can't get the PARAGRAPH_APPEND_OUTPUT from the Interpreter. - #1922

Closed
astroshim wants to merge 2 commits into
apache:masterfrom
astroshim:ZEPPELIN-1991
Closed

[ZEPPELIN-1991] Can't get the PARAGRAPH_APPEND_OUTPUT from the Interpreter.#1922
astroshim wants to merge 2 commits into
apache:masterfrom
astroshim:ZEPPELIN-1991

Conversation

@astroshim

Copy link
Copy Markdown
Contributor

What is this PR for?

This PR fixes the problem of streaming events(PARAGRAPH_APPEND_OUTPUT).
It's because of the queue was not thread safe.

What type of PR is it?

Bug Fix

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-1991

How should this be tested?

  1. make a spark paragraph

  2. run following code on spark paragraph.

%spark
(1 to 5).foreach{ i=>
Thread.sleep(1000)
println("Hello " + i)
}
  1. make a python paragraph

  2. run following code on python paragraph.

%python.python
print("hi1")
  1. retry run step 2, and check if streaming working.

Screenshots (if appropriate)

  • before
    2017-01-20 13_36_02

  • after
    2017-01-20 13_52_53

Questions:

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

@astroshimastroshim reopened this Jan 21, 2017
@AhyoungRyu

Copy link
Copy Markdown
Contributor

Thanks for the patch! Tested and works well as you described.

@AhyoungRyu

Copy link
Copy Markdown
Contributor

This patch fixes the issue that I reported in this comment in #1833 . Looks good. LGTM

@AhyoungRyu

Copy link
Copy Markdown
Contributor

Merging into master and branch-0.7 if there are no comments on this.

asfgit pushed a commit that referenced this pull request Jan 23, 2017
…reter.
### What is this PR for?
This PR fixes the problem of streaming events(PARAGRAPH_APPEND_OUTPUT).
It's because of the queue was not thread safe.
### What type of PR is it?
Bug Fix
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1991
### How should this be tested?
1. make a spark paragraph
2. run following code on spark paragraph.
```
%spark
(1 to 5).foreach{ i=>
Thread.sleep(1000)
println("Hello " + i)
}
```
3. make a python paragraph
4. run following code on python paragraph.
```
%python.python
print("hi1")
```
5. retry run step 2, and check if streaming working.
### Screenshots (if appropriate)
- before
![2017-01-20 13_36_02](https://cloud.githubusercontent.com/assets/3348133/22166640/edb9f610-df16-11e6-926c-c781f618e6cf.gif)
- after
![2017-01-20 13_52_53](https://cloud.githubusercontent.com/assets/3348133/22166840/efd855e4-df17-11e6-816c-17e069cd6a04.gif)
### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no
Author: astroshim <hsshim@zepl.com>
Closes#1922 from astroshim/ZEPPELIN-1991 and squashes the following commits:
e993585 [astroshim] make scheduler not static
66d3d2f [astroshim] fix to thread safe
(cherry picked from commit 4ef4e18)
Signed-off-by: ahyoungryu <ahyoungryu@apache.org>
Sign up for freeto 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.

2 participants

@astroshim@AhyoungRyu