You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by aniketbhatnagar <gi...@git.apache.org> on 2014/09/25 16:00:32 UTC

[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

GitHub user aniketbhatnagar opened a pull request:

    https://github.com/apache/spark/pull/2536

    SPARK-3639 | Removed settings master in examples

    This patch removes setting of master as local in Kinesis examples so that users can set it using submit-job.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aniketbhatnagar/spark Kinesis-Examples-Master-Unset

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2536.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2536
    
----
commit 31cdc594f823d136c21a14c7132a447ac9144ea7
Author: aniketbhatnagar <an...@gmail.com>
Date:   2014-09-25T13:59:34Z

    SPARK-3639 | Removed settings master in examples
    
    This patch removes setting of master as local in Kinesis examples so
    that users can set it using submit-job.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56822633
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by aniketbhatnagar <gi...@git.apache.org>.
Github user aniketbhatnagar commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2536#discussion_r18077485
  
    --- Diff: extras/kinesis-asl/src/main/scala/org/apache/spark/examples/streaming/KinesisWordCountASL.scala ---
    @@ -65,6 +65,10 @@ import org.apache.log4j.Level
      *        org.apache.spark.examples.streaming.KinesisWordCountASL mySparkStream \
      *        https://kinesis.us-east-1.amazonaws.com
      *
    + * 
    + * Note that number of workers/threads should be 1 more thread than the number of receivers.
    --- End diff --
    
    Yes, this example may not run with --master local if number of cores in the machine are not more than number of shards in the Kinesis stream. I think this is fine because same is the case when running in the standalone or yarn cluster


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/2536


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2536#discussion_r18055635
  
    --- Diff: extras/kinesis-asl/src/main/scala/org/apache/spark/examples/streaming/KinesisWordCountASL.scala ---
    @@ -65,6 +65,10 @@ import org.apache.log4j.Level
      *        org.apache.spark.examples.streaming.KinesisWordCountASL mySparkStream \
      *        https://kinesis.us-east-1.amazonaws.com
      *
    + * 
    + * Note that number of workers/threads should be 1 more thread than the number of receivers.
    --- End diff --
    
    "should be 1 more than the number of receivers"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2536#discussion_r18055647
  
    --- Diff: extras/kinesis-asl/src/main/scala/org/apache/spark/examples/streaming/KinesisWordCountASL.scala ---
    @@ -65,6 +65,10 @@ import org.apache.log4j.Level
      *        org.apache.spark.examples.streaming.KinesisWordCountASL mySparkStream \
      *        https://kinesis.us-east-1.amazonaws.com
      *
    + * 
    + * Note that number of workers/threads should be 1 more thread than the number of receivers.
    --- End diff --
    
    Does this mean this example can't run with `--master local`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56930496
  
      [QA tests have started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20847/consoleFull) for   PR 2536 at commit [`c9723ac`](https://github.com/apache/spark/commit/c9723ac92c2674c34563af6de1b2a2971b6fb6d1).
     * This patch merges cleanly.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56884340
  
      [QA tests have finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20818/consoleFull) for   PR 2536 at commit [`31cdc59`](https://github.com/apache/spark/commit/31cdc594f823d136c21a14c7132a447ac9144ea7).
     * This patch **passes** unit tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56936915
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/20847/


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2536#discussion_r18055595
  
    --- Diff: extras/kinesis-asl/src/main/scala/org/apache/spark/examples/streaming/KinesisWordCountASL.scala ---
    @@ -97,17 +101,12 @@ private object KinesisWordCountASL extends Logging {
         /* In this example, we're going to create 1 Kinesis Worker/Receiver/DStream for each shard. */
         val numStreams = numShards
     
    -    /* 
    -     *  numSparkThreads should be 1 more thread than the number of receivers.
    -     *  This leaves one thread available for actually processing the data.
    -     */
    -    val numSparkThreads = numStreams + 1
    -
    +    
         /* Setup the and SparkConfig and StreamingContext */
         /* Spark Streaming batch interval */
         val batchInterval = Milliseconds(2000)    
    +    
    --- End diff --
    
    Can you remove random new lines here?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56874262
  
    ok to test. If tests pass this LGTM.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56874750
  
      [QA tests have started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20818/consoleFull) for   PR 2536 at commit [`31cdc59`](https://github.com/apache/spark/commit/31cdc594f823d136c21a14c7132a447ac9144ea7).
     * This patch merges cleanly.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56987717
  
    Ok I'm merging this into master and 1.1. Thanks.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56936910
  
      [QA tests have finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/20847/consoleFull) for   PR 2536 at commit [`c9723ac`](https://github.com/apache/spark/commit/c9723ac92c2674c34563af6de1b2a2971b6fb6d1).
     * This patch **passes** unit tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by aniketbhatnagar <gi...@git.apache.org>.
Github user aniketbhatnagar commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56930537
  
    @andrewor14 thanks for reviewing this. All review comments have been incorporated. Please review once again.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3639 | Removed settings master in exampl...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/2536#issuecomment-56884354
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/20818/


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org