vishwas-n commented on a change in pull request #28879:
URL: https://github.com/apache/spark/pull/28879#discussion_r443951411
##########
File path:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
##########
@@ -254,9 +254,11 @@ private[spark] class ApplicationMaster(args:
ApplicationMasterArguments) extends
var attemptID: Option[String] = None
if (isClusterMode) {
- // Set the web ui port to be ephemeral for yarn so we don't conflict
with
- // other spark processes running on the same box
- System.setProperty("spark.ui.port", "0")
+ // Set the web ui port to be ephemeral for yarn if not set explicitly
+ // so we don't conflict with other spark processes running on the same
box
+ if (System.getProperty("spark.ui.port") != null) {
Review comment:
@rajatahujaatinmobi , the check must use '==' operator and not '!='
say spark.ui.port is set to 9999, above if condition equates to true and
value is overridden to 0(random port)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]