Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-33212][FOLLOWUP] Add hadoop-yarn-server-web-proxy for Hadoop 3…
….x profile ### What changes were proposed in this pull request? This adds `hadoop-yarn-server-web-proxy` as dependency for Yarn and Hadoop 3.x profile (it is already a dependency for 2.x). Also excludes some dependencies from the module which are already covered by other Hadoop jars used by Spark. ### Why are the changes needed? The class `org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter` is used by `ApplicationMaster`: ```scala private def addAmIpFilter(driver: Option[RpcEndpointRef], proxyBase: String) = { val amFilter = "org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter" val params = client.getAmIpFilterParams(yarnConf, proxyBase) driver match { case Some(d) => d.send(AddWebUIFilter(amFilter, params, proxyBase)) ... ``` and will be loaded at runtime. Therefore, without the above jar Spark Yarn app will fail with `ClassNotFoundError`. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing unit tests. Also tested manually and it worked with the fix, while was failing previously. Closes apache#31642 from sunchao/SPARK-33212-followup-2. Authored-by: Chao Sun <sunchao@apple.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
- Loading branch information