Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/21216#discussion_r186015828
--- 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 --
Will this configuration "dfs.namenode.rpc-address.xxx" always be existed,
shall we check if it is null or not?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]