-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-7799][SPARK-12786][Streaming]Add "streaming-akka" project #10744
Conversation
Include the following changes: 1. Add "streaming-akka" project and org.apache.spark.streaming.akka.AkkaUtils for creating an actorStream 2. Remove "StreamingContext.actorStream" and "JavaStreamingContext.actorStream" 3. Update the ActorWordCount example and add the JavaActorWordCount example 4. Make "streaming-zeromq" depend on "streaming-akka" and update the codes accordingly
Test build #49340 has finished for PR 10744 at commit
|
Test build #49345 has finished for PR 10744 at commit
|
I'm probably late to the party here, but I thought Akka was simply going away? does this need to stay around in 2.x? |
Yes. This PR removed |
val actorSystem = AkkaUtils.createActorSystem("test", host, port.toInt, conf = conf, | ||
securityManager = new SecurityManager(conf))._1 | ||
val akkaConf = ConfigFactory.parseString( | ||
s"""akka.actor.provider = "akka.remote.RemoteActorRefProvider" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this change will resolve SPARK-12786.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zsxwing Could you also tag that JIRA in this PR and resolve it when this is closed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the title
@tdas addressed your comments and also updated |
retest this please |
Test build #49631 has finished for PR 10744 at commit
|
|
retest this please. I just disabled the java style checker. |
jssc, | ||
new WordcountActorSystemCreator(), | ||
Props.create(JavaSampleActorReceiver.class, feederActorURI), | ||
"SampleReceiver"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent. nvm. my mistake.
Test build #49645 has finished for PR 10744 at commit
|
retest this please |
jssc: JavaStreamingContext, | ||
propsForActor: Props, | ||
actorName: String, | ||
actorSystemCreator: JFunction0[ActorSystem] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too many variations for the Java one. Let's just have 3.
1> props, name
2> 1 + storage level // for Advanced Spark users
3> 2 + actorSystemCreator + supervisorStrategy // for advanced Spark and Akka users
Test build #49700 has finished for PR 10744 at commit
|
} | ||
|
||
/** | ||
* Create an input stream that receives messages pushed by a zeromq publisher. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too please reduce the number of createStream versions.
|
retest this please |
Test build #49742 has finished for PR 10744 at commit
|
Test build #49748 has finished for PR 10744 at commit
|
LGTM. Will merge when tests pass. Thank @zsxwing ! |
Test build #49804 has finished for PR 10744 at commit
|
…uctions for streaming-akka project Since `actorStream` is an external project, we should add the linking and deploying instructions for it. A follow up PR of #10744 Author: Shixiong Zhu <[email protected]> Closes #10856 from zsxwing/akka-link-instruction.
Include the following changes: