Github user mgaido91 commented on a diff in the pull request:
https://github.com/apache/spark/pull/21216#discussion_r186024263
--- Diff:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnSparkHadoopUtil.scala
---
@@ -196,11 +196,17 @@ object YarnSparkHadoopUtil {
.map(new Path(_).getFileSystem(hadoopConf))
.toSet
+ // add the list of available namenodes for all namespaces in HDFS
federation
+ val hadoopFilesystems = Option(hadoopConf.get("dfs.nameservices"))
+ .toSeq.flatMap(_.split(","))
+ .map(ns => hadoopConf.get(s"dfs.namenode.rpc-address.$ns"))
--- End diff --
if that namespace is listed in the `dfs.nameservices` config, this should
exist, otherwise it is not a valid configuration. Shall we check for null in
case we get an invalid config?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]