Github user jerryshao commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21216#discussion_r186059087
  
    --- 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 --
    
    I think it is good to check the nullable, at least it is no harm to the 
current code.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to