Skip to content

Commit 59ff0dc

Browse files
committed
Add linking instructions for streaming-akka project
1 parent b362239 commit 59ff0dc

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

docs/streaming-custom-receivers.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,22 @@ The following table summarizes the characteristics of both types of receivers
257257

258258
## Implementing and Using a Custom Actor-based Receiver
259259

260+
Custom [Akka Actors](http://doc.akka.io/docs/akka/2.3.11/scala/actors.html) can also be used to
261+
receive data. Here are the instructions.
262+
263+
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).
264+
265+
groupId = org.apache.spark
266+
artifactId = spark-streaming-akka_{{site.SCALA_BINARY_VERSION}}
267+
version = {{site.SPARK_VERSION_SHORT}}
268+
269+
2. **Programming:**
270+
260271
<div class="codetabs">
261272
<div data-lang="scala" markdown="1" >
262273

263-
Custom [Akka Actors](http://doc.akka.io/docs/akka/2.3.11/scala/actors.html) can also be used to
264-
receive data. Extending [`ActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.ActorReceiver)
265-
allows received data to be stored in Spark using `store(...)` methods. The supervisor strategy of
274+
You need to extend [`ActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.ActorReceiver)
275+
so as to store received data into Spark using `store(...)` methods. The supervisor strategy of
266276
this actor can be configured to handle failures, etc.
267277

268278
{% highlight scala %}
@@ -283,9 +293,8 @@ See [ActorWordCount.scala](https://github.com/apache/spark/blob/master/examples/
283293
</div>
284294
<div data-lang="java" markdown="1">
285295

286-
Custom [Akka UntypedActors](http://doc.akka.io/docs/akka/2.3.11/java/untyped-actors.html) can also be used to
287-
receive data. Extending [`JavaActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.JavaActorReceiver)
288-
allows received data to be stored in Spark using `store(...)` methods. The supervisor strategy of
296+
You need to extend [`JavaActorReceiver`](api/scala/index.html#org.apache.spark.streaming.akka.JavaActorReceiver)
297+
so as to store received data into Spark using `store(...)` methods. The supervisor strategy of
289298
this actor can be configured to handle failures, etc.
290299

291300
{% highlight java %}

0 commit comments

Comments
 (0)