Uh oh!
There was an error while loading. Please reload this page.
[SPARK-6328] [Python] Python API for StreamingListener - #9186
Conversation
…mplement StreamingListenerEvent
tdas
commented
Oct 20, 2015
this is ok to test. |
tdas
commented
Oct 20, 2015
@zsxwing can you take a look. |
SparkQA
commented
Oct 20, 2015
Test build #44014 has finished for PR 9186 at commit
|
djalova
commented
Oct 21, 2015
The test that failed was a flaky StreamingKMeansTest. |
tdas
commented
Oct 21, 2015
test this again |
djalova
commented
Oct 21, 2015
@tdas it looks like Jenkins didn't retest |
zsxwing
commented
Oct 22, 2015
retest this please |
SparkQA
commented
Oct 22, 2015
Test build #44115 has finished for PR 9186 at commit
|
There was a problem hiding this comment.
I thought it would make it easier to see which Info is associated with each StreamingListenerEvent but I can remove it.
There was a problem hiding this comment.
Would it be better to use this method to return instances of the Python friendly classes for these Scala objects?
zsxwing
commented
Oct 22, 2015
I suggest adding some Python friendly classes for |
SparkQA
commented
Oct 23, 2015
Test build #44248 has finished for PR 9186 at commit
|
SparkQA
commented
Oct 23, 2015
Test build #44268 has finished for PR 9186 at commit
|
There was a problem hiding this comment.
The listener sometimes receives 3 batchCompleted events instead of 4 when I run the test, even though it always gets the correct job output. However, when I add a minor delay the test passes consistently. Can I get someone's opinion on this?
There was a problem hiding this comment.
Take a look at PySparkStreamingTestCase.wait_for. You can use it to wait for the expected results or timeout.
SparkQA
commented
Oct 26, 2015
Test build #44377 has finished for PR 9186 at commit
|
SparkQA
commented
Nov 12, 2015
Test build #45690 has finished for PR 9186 at commit
|
There was a problem hiding this comment.
I just meant you can access the Map here, e.g.:
for streamId in info.streamIdToInputInfo():
streamInputInfo = info.streamIdToInputInfo()[streamId]
# access fields of streamInputInfo
for outputOpId in info.outputOperationInfos():
outputOperationInfo = info.outputOperationInfos()[outputOpId]
# access fields of outputOperationInfo
zsxwing
commented
Nov 12, 2015
I just noticed that Streaming Python unit tests cannot report failure. It always says |
zsxwing
commented
Nov 12, 2015
We should retest this PR after merging #9669. |
tdas
commented
Nov 13, 2015
#9669 has been merged. please merge with master and test the PR again. |
zsxwing
commented
Nov 13, 2015
retest this please |
SparkQA
commented
Nov 13, 2015
Test build #45874 has finished for PR 9186 at commit
|
zsxwing
commented
Nov 13, 2015
@djalova could you fix the test? |
djalova
commented
Nov 13, 2015
Sure, I'll change it to check for at least 4 batches. |
SparkQA
commented
Nov 13, 2015
Test build #45880 has finished for PR 9186 at commit
|
zsxwing
commented
Nov 13, 2015
@djalova could you add the following checks?
|
zsxwing
commented
Nov 13, 2015
Sorry for my unclear comment. I just meant adding the real codes to access fields of |
djalova
commented
Nov 13, 2015
Sorry I wasn't reading your comment carefully. I'll make the update. |
SparkQA
commented
Nov 14, 2015
Test build #45905 has finished for PR 9186 at commit
|
SparkQA
commented
Nov 14, 2015
Test build #45906 has finished for PR 9186 at commit
|
zsxwing
commented
Nov 14, 2015
Thanks @djalova LGTM |
tdas
commented
Nov 16, 2015
Author: Daniel Jalova <djalova@us.ibm.com> Closes#9186 from djalova/SPARK-6328. (cherry picked from commit ace0db4) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
No description provided.