Skip to content
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

[SPARK-24014][PySpark] Add onStreamingStarted method to StreamingListener #21098

Closed
wants to merge 1 commit into from

Conversation

viirya
Copy link
Member

@viirya viirya commented Apr 18, 2018

What changes were proposed in this pull request?

The StreamingListener in PySpark side seems to be lack of onStreamingStarted method. This patch adds it and a test for it.

This patch also includes a trivial doc improvement for createDirectStream.

Original PR is #21057.

How was this patch tested?

Added test.

@@ -23,6 +23,12 @@ class StreamingListener(object):
def __init__(self):
pass

def onStreamingStarted(self, streamingStarted):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although in #21057, it is mentioned that there will be an exception to be thrown if this method is lack. However, I can't reproduce such error.

Copy link
Member Author

@viirya viirya Apr 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because PythonStreamingListener have this method, I think it is still better to add it here. And I also add a test to make sure it works.

@viirya
Copy link
Member Author

viirya commented Apr 18, 2018

cc @HyukjinKwon

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I already reviewed the main change.

@SparkQA
Copy link

SparkQA commented Apr 18, 2018

Test build #89509 has finished for PR 21098 at commit 68adfc6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

@jerryshao jerryshao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jerryshao
Copy link
Contributor

Merging to master and branch 2.3.

asfgit pushed a commit that referenced this pull request Apr 19, 2018
…ener

## What changes were proposed in this pull request?

The `StreamingListener` in PySpark side seems to be lack of `onStreamingStarted` method. This patch adds it and a test for it.

This patch also includes a trivial doc improvement for `createDirectStream`.

Original PR is #21057.

## How was this patch tested?

Added test.

Author: Liang-Chi Hsieh <viirya@gmail.com>

Closes #21098 from viirya/SPARK-24014.

(cherry picked from commit 8bb0df2)
Signed-off-by: jerryshao <sshao@hortonworks.com>
@asfgit asfgit closed this in 8bb0df2 Apr 19, 2018
@viirya viirya deleted the SPARK-24014 branch December 27, 2023 18:35
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