Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/17866#discussion_r115060808
--- Diff:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
---
@@ -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,
--- End diff --
It might be better to replace the two `create` parameters (`port` and
`clientMode`) with a single `port: Option[Int]` now; if it's set, a server is
started, if it's not, it operates in client-only mode.
Probably ok to punt on that one though, since it will touch a lot more
places I think.
---
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]