Skip to content
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-2886] Use more specific actor system name than "spark" #1810

Closed
wants to merge 6 commits into from

Conversation

andrewor14
Copy link
Contributor

As of #1777 we log the name of the actor system when it binds to a port. The current name "spark" is super general and does not convey any meaning. For instance, the following line is taken from my driver log after setting spark.driver.port to 5001.

14/08/13 19:33:29 INFO Remoting: Remoting started; listening on addresses:
[akka.tcp://spark@andrews-mbp:5001]
14/08/13 19:33:29 INFO Remoting: Remoting now listens on addresses: 
[akka.tcp://spark@andrews-mbp:5001]
14/08/06 13:40:05 INFO Utils: Successfully started service 'spark' on port 5001.

This commit renames this to "sparkDriver" and "sparkExecutor". The goal of this unambitious PR is simply to make the logged information more explicit without introducing any change in functionality.

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA tests have started for PR 1810. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18048/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA results for PR 1810:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18048/consoleFull

@andrewor14
Copy link
Contributor Author

test this please

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA tests have started for PR 1810. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18065/consoleFull

@andrewor14
Copy link
Contributor Author

Previous test seems frozen. Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA tests have started for PR 1810. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18079/consoleFull

Hopefully this allows the tests to run succesfully...
@andrewor14
Copy link
Contributor Author

test this please

@SparkQA
Copy link

SparkQA commented Aug 8, 2014

QA tests have started for PR 1810. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18175/consoleFull

@pwendell
Copy link
Contributor

pwendell commented Aug 9, 2014

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Aug 9, 2014

QA tests have started for PR 1810. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18251/consoleFull

@andrewor14
Copy link
Contributor Author

Build always times out for some reason

@andrewor14
Copy link
Contributor Author

Ah, looks like it's not timing out on the build, but even the first test is hanging. I'll look more into why this is the case...


val (actorSystem, boundPort) = AkkaUtils.createActorSystem("spark", hostname, port, conf = conf,
securityManager = securityManager)
val actorSystemName = if (isDriver) "driverActor" else "executorActor"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we call this "driver actor system" / "executor actor system"? These are not individual actors, but whole systems.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm looks like elsewhere we call this sparkMaster and sparkWorker, so maybe I'll keep this consistent by calling these sparkDriver and sparkExecutor. Also the akka URL looks weird if we include "*ActorSystem" in it, e.g. akka.tcp://driverActorSystem@localhost:7077

import org.apache.spark.streaming.scheduler.RegisterReceiver
import com.google.common.base.Throwables
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some import cleanups here

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA tests have started for PR 1810. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18513/consoleFull

@andrewor14
Copy link
Contributor Author

The newest changes renames the actor system to sparkDriver and sparkExecutor. The scope of the changes has grown a little, as it turns out we currently hard-code the actor system name in a few places. I've changed all the places where we do this to use a common variable.

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA results for PR 1810:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18513/consoleFull

@mateiz
Copy link
Contributor

mateiz commented Aug 26, 2014

This looks good to me, Andrew -- feel free to merge it.

@andrewor14
Copy link
Contributor Author

Thanks @mateiz, I have merged this into master and 1.1.

@asfgit asfgit closed this in b21ae5b Aug 26, 2014
asfgit pushed a commit that referenced this pull request Aug 26, 2014
As of #1777 we log the name of the actor system when it binds to a port. The current name "spark" is super general and does not convey any meaning. For instance, the following line is taken from my driver log after setting `spark.driver.port` to 5001.
```
14/08/13 19:33:29 INFO Remoting: Remoting started; listening on addresses:
[akka.tcp://sparkandrews-mbp:5001]
14/08/13 19:33:29 INFO Remoting: Remoting now listens on addresses:
[akka.tcp://sparkandrews-mbp:5001]
14/08/06 13:40:05 INFO Utils: Successfully started service 'spark' on port 5001.
```
This commit renames this to "sparkDriver" and "sparkExecutor". The goal of this unambitious PR is simply to make the logged information more explicit without introducing any change in functionality.

Author: Andrew Or <[email protected]>

Closes #1810 from andrewor14/service-name and squashes the following commits:

8c459ed [Andrew Or] Use a common variable for driver/executor actor system names
3a92843 [Andrew Or] Change actor name to sparkDriver and sparkExecutor
921363e [Andrew Or] Merge branch 'master' of github.com:apache/spark into service-name
c8c6a62 [Andrew Or] Do not include hyphens in actor name
1c1b42e [Andrew Or] Avoid spaces in akka system name
f644b55 [Andrew Or] Use more specific service name

(cherry picked from commit b21ae5b)
Signed-off-by: Andrew Or <[email protected]>
kayousterhout pushed a commit to kayousterhout/spark-1 that referenced this pull request Aug 27, 2014
As of apache#1777 we log the name of the actor system when it binds to a port. The current name "spark" is super general and does not convey any meaning. For instance, the following line is taken from my driver log after setting `spark.driver.port` to 5001.
```
14/08/13 19:33:29 INFO Remoting: Remoting started; listening on addresses:
[akka.tcp://sparkandrews-mbp:5001]
14/08/13 19:33:29 INFO Remoting: Remoting now listens on addresses:
[akka.tcp://sparkandrews-mbp:5001]
14/08/06 13:40:05 INFO Utils: Successfully started service 'spark' on port 5001.
```
This commit renames this to "sparkDriver" and "sparkExecutor". The goal of this unambitious PR is simply to make the logged information more explicit without introducing any change in functionality.

Author: Andrew Or <[email protected]>

Closes apache#1810 from andrewor14/service-name and squashes the following commits:

8c459ed [Andrew Or] Use a common variable for driver/executor actor system names
3a92843 [Andrew Or] Change actor name to sparkDriver and sparkExecutor
921363e [Andrew Or] Merge branch 'master' of github.com:apache/spark into service-name
c8c6a62 [Andrew Or] Do not include hyphens in actor name
1c1b42e [Andrew Or] Avoid spaces in akka system name
f644b55 [Andrew Or] Use more specific service name
@andrewor14 andrewor14 deleted the service-name branch August 27, 2014 18:14
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
As of apache#1777 we log the name of the actor system when it binds to a port. The current name "spark" is super general and does not convey any meaning. For instance, the following line is taken from my driver log after setting `spark.driver.port` to 5001.
```
14/08/13 19:33:29 INFO Remoting: Remoting started; listening on addresses:
[akka.tcp://sparkandrews-mbp:5001]
14/08/13 19:33:29 INFO Remoting: Remoting now listens on addresses:
[akka.tcp://sparkandrews-mbp:5001]
14/08/06 13:40:05 INFO Utils: Successfully started service 'spark' on port 5001.
```
This commit renames this to "sparkDriver" and "sparkExecutor". The goal of this unambitious PR is simply to make the logged information more explicit without introducing any change in functionality.

Author: Andrew Or <[email protected]>

Closes apache#1810 from andrewor14/service-name and squashes the following commits:

8c459ed [Andrew Or] Use a common variable for driver/executor actor system names
3a92843 [Andrew Or] Change actor name to sparkDriver and sparkExecutor
921363e [Andrew Or] Merge branch 'master' of github.com:apache/spark into service-name
c8c6a62 [Andrew Or] Do not include hyphens in actor name
1c1b42e [Andrew Or] Avoid spaces in akka system name
f644b55 [Andrew Or] Use more specific service name
viirya pushed a commit to viirya/spark-1 that referenced this pull request Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants