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

    https://github.com/apache/spark/pull/20761#discussion_r187808457
  
    --- Diff: 
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala 
---
    @@ -86,6 +86,13 @@ private[spark] class Client(
         sparkConf.get(AM_CORES)
       }
     
    +  private val driverResourceTypes: collection.immutable.Map[String, 
String] =
    --- End diff --
    
    If I change it to Map, I have a compilation error because the call below of 
sparkConf.getAllWithPrefix(..).toMap returns an immutable Map.
    Error:(91, 84) type mismatch;
     found   : scala.collection.immutable.Map[String,String]
     required: scala.collection.mutable.Map[String,String]


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to