-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-20605][Core][Yarn][Mesos] Deprecate not used AM and executor port configuration #17866
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 1 commit
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 |
|---|---|---|
|
|
@@ -191,11 +191,10 @@ private[spark] object CoarseGrainedExecutorBackend extends Logging { | |
|
|
||
| // Bootstrap to fetch the driver's Spark properties. | ||
| val executorConf = new SparkConf | ||
| val port = executorConf.getInt("spark.executor.port", 0) | ||
| val fetcher = RpcEnv.create( | ||
| "driverPropsFetcher", | ||
| hostname, | ||
| port, | ||
| -1, | ||
| executorConf, | ||
| new SecurityManager(executorConf), | ||
| clientMode = true) | ||
|
|
@@ -221,7 +220,7 @@ private[spark] object CoarseGrainedExecutorBackend extends Logging { | |
| } | ||
|
|
||
| val env = SparkEnv.createExecutorEnv( | ||
| driverConf, executorId, hostname, port, cores, cfg.ioEncryptionKey, isLocal = false) | ||
| driverConf, executorId, hostname, -1, cores, cfg.ioEncryptionKey, isLocal = false) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about just removing the parameter from |
||
|
|
||
| env.rpcEnv.setupEndpoint("Executor", new CoarseGrainedExecutorBackend( | ||
| env.rpcEnv, driverUrl, executorId, hostname, cores, userClassPath, env)) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -429,8 +429,7 @@ private[spark] class ApplicationMaster( | |
| } | ||
|
|
||
| private def runExecutorLauncher(securityMgr: SecurityManager): Unit = { | ||
| val port = sparkConf.get(AM_PORT) | ||
| rpcEnv = RpcEnv.create("sparkYarnAM", Utils.localHostName, port, sparkConf, securityMgr, | ||
| rpcEnv = RpcEnv.create("sparkYarnAM", Utils.localHostName, -1, sparkConf, securityMgr, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be better to replace the two Probably ok to punt on that one though, since it will touch a lot more places I think.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will touch a lot of places, I would incline to leave that |
||
| clientMode = true) | ||
| val driverRef = waitForSparkDriver() | ||
| addAmIpFilter() | ||
|
|
||
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.
We can "backdate" this to 2.0.0 since that's when akka was removed, making these options obsolete.