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

    https://github.com/apache/spark/pull/8100#discussion_r42926909
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/deploy/yarn/LocalityPreferredContainerPlacementStrategy.scala
 ---
    @@ -179,4 +197,30 @@ private[yarn] class 
LocalityPreferredContainerPlacementStrategy(
           (host, math.max(0, (expectedCount - existedCount).ceil.toInt))
         }
       }
    +
    +  /**
    +   * Calculate the host to possible number of containers for pending 
allocation containers.
    +   * @param hostToLocalTaskCount a map to store the preferred hostname and 
possible task
    +   *                             numbers running on it, used as hints for 
container allocation
    +   * @param localityMatchedPendingAllocations A sequence of pending 
container request which
    +   *                                          matches the localities of 
current required tasks.
    +   * @return a Map with hostname as key and possible number of containers 
on this host as value
    +   */
    +  private def pendingAllocationHostToContainerCount(
    +      hostToLocalTaskCount: Map[String, Int],
    --- End diff --
    
    This parameter is not used.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to