Skip to content

Commit 803e93e

Browse files
author
shekhar.bansal
committed
[SPARK-6653][yarn] New configuration property to specify port for sparkYarnAM actor system
1 parent 82bb7fd commit 803e93e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ private[spark] class ApplicationMaster(
274274
}
275275

276276
private def runExecutorLauncher(securityMgr: SecurityManager): Unit = {
277-
rpcEnv = RpcEnv.create("sparkYarnAM", Utils.localHostName, 0, sparkConf, securityMgr)
277+
val port = sparkConf.getInt("spark.yarn.am.port", 0)
278+
rpcEnv = RpcEnv.create("sparkYarnAM", Utils.localHostName, port, sparkConf, securityMgr)
278279
waitForSparkDriver()
279280
addAmIpFilter()
280281
registerAM(sparkConf.get("spark.driver.appUIAddress", ""), securityMgr)

0 commit comments

Comments
 (0)