You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by zsxwing <gi...@git.apache.org> on 2016/01/21 01:54:51 UTC

[GitHub] spark pull request: [SPARK-7799][Streaming][Document]Add the linki...

GitHub user zsxwing opened a pull request:

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

    [SPARK-7799][Streaming][Document]Add the linking instruction for streaming-akka project

    Since `actorStream` is an external project, we should add the linking instruction for it.
    
    A follow up PR of #10744

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

    $ git pull https://github.com/zsxwing/spark akka-link-instruction

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

    https://github.com/apache/spark/pull/10856.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 #10856
    
----
commit 59ff0dc99d30e305dde6bbda6684d0ffcc74857c
Author: Shixiong Zhu <sh...@databricks.com>
Date:   2016-01-21T00:52:16Z

    Add linking instructions for streaming-akka project

----


---
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-7799][Streaming][Document]Add the linki...

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

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


---
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-7799][Streaming][Document]Add the linki...

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

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


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-174442228
  
    **[Test build #2450 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2450/consoleFull)** for PR 10856 at commit [`448007b`](https://github.com/apache/spark/commit/448007b2e928a6046a64a599a6831a0452fbd69b).


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-173416074
  
    cc @tdas 


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-175190907
  
    LGTM. Merging to master.



---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-174442299
  
    **[Test build #2451 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2451/consoleFull)** for PR 10856 at commit [`448007b`](https://github.com/apache/spark/commit/448007b2e928a6046a64a599a6831a0452fbd69b).


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-173418836
  
    **[Test build #49832 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49832/consoleFull)** for PR 10856 at commit [`59ff0dc`](https://github.com/apache/spark/commit/59ff0dc99d30e305dde6bbda6684d0ffcc74857c).
     * This patch passes all 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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-174444593
  
    **[Test build #2450 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2450/consoleFull)** for PR 10856 at commit [`448007b`](https://github.com/apache/spark/commit/448007b2e928a6046a64a599a6831a0452fbd69b).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `		class CustomActor extends ActorReceiver `
      * `		class CustomActor extends JavaActorReceiver `


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-173423908
  
    Merged build finished. Test PASSed.


---
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-7799][Streaming][Document]Add the linki...

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

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


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-173423824
  
    **[Test build #49836 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49836/consoleFull)** for PR 10856 at commit [`448007b`](https://github.com/apache/spark/commit/448007b2e928a6046a64a599a6831a0452fbd69b).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `		class CustomActor extends ActorReceiver `
      * `		class CustomActor extends JavaActorReceiver `


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-173421720
  
    **[Test build #49836 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49836/consoleFull)** for PR 10856 at commit [`448007b`](https://github.com/apache/spark/commit/448007b2e928a6046a64a599a6831a0452fbd69b).


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-173418991
  
    Merged build finished. Test PASSed.


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-174444720
  
    **[Test build #2451 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2451/consoleFull)** for PR 10856 at commit [`448007b`](https://github.com/apache/spark/commit/448007b2e928a6046a64a599a6831a0452fbd69b).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `		class CustomActor extends ActorReceiver `
      * `		class CustomActor extends JavaActorReceiver `


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#issuecomment-173416679
  
    **[Test build #49832 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49832/consoleFull)** for PR 10856 at commit [`59ff0dc`](https://github.com/apache/spark/commit/59ff0dc99d30e305dde6bbda6684d0ffcc74857c).


---
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-7799][Streaming][Document]Add the linki...

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

    https://github.com/apache/spark/pull/10856#discussion_r50348448
  
    --- Diff: docs/streaming-custom-receivers.md ---
    @@ -257,54 +257,61 @@ The following table summarizes the characteristics of both types of receivers
     
     ## Implementing and Using a Custom Actor-based Receiver
     
    -<div class="codetabs">
    -<div data-lang="scala"  markdown="1" >
    -
     Custom [Akka Actors](http://doc.akka.io/docs/akka/2.3.11/scala/actors.html) can also be used to
    -receive data. Extending [`ActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.ActorReceiver)
    -allows received data to be stored in Spark using `store(...)` methods. The supervisor strategy of
    -this actor can be configured to handle failures, etc.
    +receive data. Here are the instructions.
     
    -{% highlight scala %}
    +1. **Linking:** You need to add the following dependency to your SBT or Maven project (see [Linking section](streaming-programming-guide.html#linking) in the main programming guide for further information).
     
    -class CustomActor extends ActorReceiver {
    -  def receive = {
    -    case data: String => store(data)
    -  }
    -}
    +		groupId = org.apache.spark
    +		artifactId = spark-streaming-akka_{{site.SCALA_BINARY_VERSION}}
    +		version = {{site.SPARK_VERSION_SHORT}}
     
    -// A new input stream can be created with this custom actor as
    -val ssc: StreamingContext = ...
    -val lines = AkkaUtils.createStream[String](ssc, Props[CustomActor](), "CustomReceiver")
    +2. **Programming:**
     
    -{% endhighlight %}
    +	<div class="codetabs">
    +	<div data-lang="scala"  markdown="1" >
     
    -See [ActorWordCount.scala](https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/ActorWordCount.scala) for an end-to-end example.
    -</div>
    -<div data-lang="java" markdown="1">
    +	You need to extend [`ActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.ActorReceiver)
    +	so as to store received data into Spark using `store(...)` methods. The supervisor strategy of
    +	this actor can be configured to handle failures, etc.
     
    -Custom [Akka UntypedActors](http://doc.akka.io/docs/akka/2.3.11/java/untyped-actors.html) can also be used to
    -receive data. Extending [`JavaActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.JavaActorReceiver)
    -allows received data to be stored in Spark using `store(...)` methods. The supervisor strategy of
    -this actor can be configured to handle failures, etc.
    +		class CustomActor extends ActorReceiver {
    +		  def receive = {
    +		    case data: String => store(data)
    +		  }
    +		}
     
    -{% highlight java %}
    +		// A new input stream can be created with this custom actor as
    +		val ssc: StreamingContext = ...
    +		val lines = AkkaUtils.createStream[String](ssc, Props[CustomActor](), "CustomReceiver")
     
    -class CustomActor extends JavaActorReceiver {
    -  @Override
    -  public void onReceive(Object msg) throws Exception {
    -    store((String) msg);
    -  }
    -}
    +	See [ActorWordCount.scala](https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/ActorWordCount.scala) for an end-to-end example.
    +	</div>
    +	<div data-lang="java" markdown="1">
     
    -// A new input stream can be created with this custom actor as
    -JavaStreamingContext jssc = ...;
    -JavaDStream<String> lines = AkkaUtils.<String>createStream(jssc, Props.create(CustomActor.class), "CustomReceiver");
    +	You need to extend [`JavaActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.JavaActorReceiver)
    +	so as to store received data into Spark using `store(...)` methods. The supervisor strategy of
    +	this actor can be configured to handle failures, etc.
     
    -{% endhighlight %}
    +		class CustomActor extends JavaActorReceiver {
    +		  @Override
    +		  public void onReceive(Object msg) throws Exception {
    +		    store((String) msg);
    +		  }
    +		}
     
    -See [JavaActorWordCount.scala](https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/JavaActorWordCount.scala) for an end-to-end example.
    -</div>
    -</div>
    +		// A new input stream can be created with this custom actor as
    +		JavaStreamingContext jssc = ...;
    +		JavaDStream<String> lines = AkkaUtils.<String>createStream(jssc, Props.create(CustomActor.class), "CustomReceiver");
    +
    +	See [JavaActorWordCount.scala](https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/JavaActorWordCount.scala) for an end-to-end example.
    +	</div>
    +	</div>
    +
    +3. **Deploying:** As with any Spark applications, `spark-submit` is used to launch your application.
    --- End diff --
    
    To make the list number here display 3, I changed some indents in `programming`. Please use https://github.com/apache/spark/pull/10856/files?w=1 to review the content.


---
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