Skip to content

Commit

Permalink
Prevent YARN filter from being added to the Spark UI
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinii committed Jan 26, 2024
1 parent c93bba8 commit bc57a6d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ private[spark] class ApplicationMaster(
}

private def runDriver(): Unit = {
addAmIpFilter(None, System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV))
// addAmIpFilter(None, System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV))
userClassThread = startUserApplication()

// This a bit hacky, but we need to wait until the spark.driver.port property has
Expand Down Expand Up @@ -556,8 +556,8 @@ private[spark] class ApplicationMaster(
val driverRef = rpcEnv.setupEndpointRef(
RpcAddress(driverHost, driverPort),
YarnSchedulerBackend.ENDPOINT_NAME)
addAmIpFilter(Some(driverRef),
System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV))
// addAmIpFilter(Some(driverRef),
// System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV))
createAllocator(driverRef, sparkConf, rpcEnv, appAttemptId, distCacheConf)

// In client mode the actor will stop the reporter thread.
Expand Down

0 comments on commit bc57a6d

Please sign in to comment.