-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-2157] Enable tight firewall rules for Spark #1777
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
Changes from 27 commits
1c0981a
49ee29b
f34115d
17c79bb
b80d2fd
c5a0568
cad16da
066dc7a
5d84e0e
9e4ad96
24a4c32
0347aef
7c5bdc4
038a579
ec676f4
73fbe89
6b550b0
ba32280
1d7e408
470f38c
e111d08
3f8e51b
4d9e6f3
8d836e6
6016e77
9868358
151327a
2551eb2
b565079
de1b207
bfbab28
e837cde
cb3be88
1d2d5c6
86461e2
a2dd05c
d502e5f
93d359f
c22ad00
b97b02a
523c30e
7da0493
8a6b820
621267b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,8 +30,9 @@ object DriverWrapper { | |
| args.toList match { | ||
| case workerUrl :: mainClass :: extraArgs => | ||
| val conf = new SparkConf() | ||
| val watcherPort = conf.getInt("spark.worker.watcher.port", 0) // TODO: document this | ||
|
||
| val (actorSystem, _) = AkkaUtils.createActorSystem("Driver", | ||
| Utils.localHostName(), 0, conf, new SecurityManager(conf)) | ||
| Utils.localHostName(), watcherPort, conf, new SecurityManager(conf)) | ||
| actorSystem.actorOf(Props(classOf[WorkerWatcher], workerUrl), name = "workerWatcher") | ||
|
|
||
| // Delegate to supplied main class | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,7 +84,8 @@ private[spark] class Executor( | |
| // Initialize Spark environment (using system properties read above) | ||
| private val env = { | ||
| if (!isLocal) { | ||
| val _env = SparkEnv.create(conf, executorId, slaveHostname, 0, | ||
| val port = conf.getInt("spark.executor.env.port", 0) // TODO: document this | ||
|
||
| val _env = SparkEnv.create(conf, executorId, slaveHostname, port, | ||
| isDriver = false, isLocal = false) | ||
| SparkEnv.set(_env) | ||
| _env.metricsSystem.registerSource(executorSource) | ||
|
|
||
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.
Are you planning to do this?
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.
btw - there is a comment below to this effect, but I think there may be an akka option where it doesn't need us to open up a server on the client at all. Not worth spending time on though for this patch...