Skip to content

Commit 6022bcd

Browse files
committed
review commit
1 parent 1fbb925 commit 6022bcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorLauncher.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class ExecutorLauncher(args: ApplicationMasterArguments, conf: Configuration, sp
192192
// add the yarn amIpFilter that Yarn requires for properly securing the UI
193193
private def addAmIpFilter() {
194194
val proxy = YarnConfiguration.getProxyHostAndPort(conf)
195-
val parts: Array[String] = proxy.split(":")
195+
val parts = proxy.split(":")
196196
val proxyBase = System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV)
197197
val uriBase = "http://" + proxy + proxyBase
198198
val amFilter = "PROXY_HOST=" + parts(0) + "," + "PROXY_URI_BASE=" + uriBase

yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/ExecutorLauncher.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class ExecutorLauncher(args: ApplicationMasterArguments, conf: Configuration, sp
156156
// add the yarn amIpFilter that Yarn requires for properly securing the UI
157157
private def addAmIpFilter() {
158158
val proxy = WebAppUtils.getProxyHostAndPort(conf)
159-
val parts : Array[String] = proxy.split(":")
159+
val parts = proxy.split(":")
160160
val proxyBase = System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV)
161161
val uriBase = "http://" + proxy + proxyBase
162162
val amFilter = "PROXY_HOST=" + parts(0) + "," + "PROXY_URI_BASE=" + uriBase

0 commit comments

Comments
 (0)