Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/10744#discussion_r50037820
--- Diff:
examples/src/main/scala/org/apache/spark/examples/streaming/ActorWordCount.scala
---
@@ -150,16 +153,27 @@ object ActorWordCount {
*
* An important point to note:
* Since Actor may exist outside the spark framework, It is thus
user's responsibility
- * to ensure the type safety, i.e type of data received and
InputDstream
+ * to ensure the type safety, i.e type of data received and
InputDStream
* should be same.
*
* For example: Both actorStream and SampleActorReceiver are
parameterized
* to same type to ensure type safety.
*/
+ def actorSystemCreator(): ActorSystem = {
+ val uniqueSystemName =
s"actor-wordcount-${TaskContext.get().taskAttemptId()}"
+ val akkaConf = ConfigFactory.parseString(
+ s"""akka.actor.provider = "akka.remote.RemoteActorRefProvider"
+ |akka.remote.netty.tcp.transport-class =
"akka.remote.transport.netty.NettyTransport"
--- End diff --
use standard confs
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]