Skip to content

Conversation

@watermen
Copy link
Contributor

I have deleted the repository with mistake, so I create a new PR. old PR:#2216

def print(num: Int = 10)

User can control the number of elements which to print.

@watermen watermen changed the title [SPARK-3325] Add a parameter to the method print in class DStream. [SPARK-3325][Streaming] Add a parameter to the method print in class DStream. Nov 13, 2014
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@tdas
Copy link
Contributor

tdas commented Nov 14, 2014

Jenkins, this is ok to test.

@tdas
Copy link
Contributor

tdas commented Nov 14, 2014

LGTM! As soon as the Jenkins test passes, I am going to merge this.

@SparkQA
Copy link

SparkQA commented Nov 14, 2014

Test build #23386 has started for PR 3237 at commit 2279800.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 14, 2014

Test build #23386 has finished for PR 3237 at commit 2279800.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23386/
Test FAILed.

@tdas
Copy link
Contributor

tdas commented Nov 15, 2014

Aaah, this is getting into the binary compatibility issue. Adding the print(num) method to the interface JavaDStreamLike (Scala traits boil down to Java interfaces) is going to break existing implementations of the abstract class. But that is probably okay because I doubt any one has subclasses JavaDStreamLike. You will have to add the mima binary check exception in this file.
https://github.com/apache/spark/blob/master/project/MimaExcludes.scala

And you have to add exclusions for
ProblemFilters.exclude[MissingMethodProblem]("org.apache.spark.streaming.api.java.JavaDStreamLike.print") for Spark 1.2

Let me know if you need more information.

@tdas
Copy link
Contributor

tdas commented Nov 15, 2014

Also it would be cool if you can also extend the Python DStream's print :)
Should be pretty easy to do with the Java interface implemented.

@SparkQA
Copy link

SparkQA commented Nov 17, 2014

Test build #23466 has started for PR 3237 at commit 21e8892.

  • This patch merges cleanly.

@watermen
Copy link
Contributor Author

@tdas I'm not familiar with python, can you give me more information?

@SparkQA
Copy link

SparkQA commented Nov 17, 2014

Test build #23466 has finished for PR 3237 at commit 21e8892.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23466/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23465/
Test FAILed.

@tdas
Copy link
Contributor

tdas commented Nov 19, 2014

@watermen For python you can take a look at the print in this file
https://github.com/apache/spark/blob/master/python/pyspark/streaming/dstream.py#L160 , and update it.
Also please fix the scala style issue, see the next Jenkins logs for more details.

@tdas
Copy link
Contributor

tdas commented Nov 19, 2014

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Nov 19, 2014

Test build #23634 has started for PR 3237 at commit 21e8892.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 19, 2014

Test build #23634 has finished for PR 3237 at commit 21e8892.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23634/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23651 has started for PR 3237 at commit 7be507f.

  • This patch does not merge cleanly.

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23651 has finished for PR 3237 at commit 7be507f.

  • This patch passes all tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23651/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23668 has started for PR 3237 at commit 5fd7afd.

  • This patch does not merge cleanly.

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23669 has started for PR 3237 at commit 3abdb1b.

  • This patch does not merge cleanly.

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23670 has started for PR 3237 at commit b589a4b.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23668 has finished for PR 3237 at commit 5fd7afd.

  • This patch passes all tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23668/
Test PASSed.

@tdas
Copy link
Contributor

tdas commented Dec 24, 2014

Hey @watermen This patch has conflicts. Could you update? Sorry for delaying the merging of this PR.

@SparkQA
Copy link

SparkQA commented Dec 31, 2014

Test build #24927 has started for PR 3237 at commit 3b9d5cf.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 31, 2014

Test build #24929 has started for PR 3237 at commit f6ac3cb.

  • This patch merges cleanly.

@watermen
Copy link
Contributor Author

@tdas I had fixed the conflicts, please merge this PR.

@SparkQA
Copy link

SparkQA commented Dec 31, 2014

Test build #24927 has finished for PR 3237 at commit 3b9d5cf.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24927/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Dec 31, 2014

Test build #24929 has finished for PR 3237 at commit f6ac3cb.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24929/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Dec 31, 2014

Test build #24951 has started for PR 3237 at commit bb35d1a.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 31, 2014

Test build #24951 has finished for PR 3237 at commit bb35d1a.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24951/
Test FAILed.

@tdas
Copy link
Contributor

tdas commented Dec 31, 2014

Jenkins, test this again.

@JoshRosen
Copy link
Contributor

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Dec 31, 2014

Test build #24978 has started for PR 3237 at commit bb35d1a.

  • This patch merges cleanly.

@tdas
Copy link
Contributor

tdas commented Jan 1, 2015

Oops sorry, my bad. I created another merge conflict by merging another PR. Let me fix that for you.

@SparkQA
Copy link

SparkQA commented Jan 1, 2015

Test build #24978 has finished for PR 3237 at commit bb35d1a.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24978/
Test PASSed.

@tdas
Copy link
Contributor

tdas commented Jan 1, 2015

I opened a new PR with your branch
#3865

You will get the main authorship :)

@tdas
Copy link
Contributor

tdas commented Jan 2, 2015

The other PR #3865 has been merged. Mind closing this PR? Thanks for all the effort!

asfgit pushed a commit that referenced this pull request Jan 2, 2015
…DStream

This PR is a fixed version of the original PR #3237 by watermen and scwf.
This adds the ability to specify how many elements to print in `DStream.print`.

Author: Yadong Qi <qiyadong2010@gmail.com>
Author: q00251598 <qiyadong@huawei.com>
Author: Tathagata Das <tathagata.das1565@gmail.com>
Author: wangfei <wangfei1@huawei.com>

Closes #3865 from tdas/print-num and squashes the following commits:

cd34e9e [Tathagata Das] Fix bug
7c09f16 [Tathagata Das] Merge remote-tracking branch 'apache-github/master' into HEAD
bb35d1a [Yadong Qi] Update MimaExcludes.scala
f8098ca [Yadong Qi] Update MimaExcludes.scala
f6ac3cb [Yadong Qi] Update MimaExcludes.scala
e4ed897 [Yadong Qi] Update MimaExcludes.scala
3b9d5cf [wangfei] fix conflicts
ec8a3af [q00251598] move to  Spark 1.3
26a70c0 [q00251598] extend the Python DStream's print
b589a4b [q00251598] add another print function
@tdas
Copy link
Contributor

tdas commented Jan 5, 2015

Mind closing this PR?

@watermen watermen closed this Jan 6, 2015
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.

7 participants