public class RoundRobinYarnContainerAllocator extends Object implements YarnContainerAllocator
| Constructor and Description |
|---|
RoundRobinYarnContainerAllocator() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxMappers(int nodes,
int reducers,
int nodeSlots,
int appMasterSlots,
int mapSlots,
int reduceSlots)
Calculates the max number of mappers based on the cluster configuration.
|
public int getMaxMappers(int nodes,
int reducers,
int nodeSlots,
int appMasterSlots,
int mapSlots,
int reduceSlots)
getMaxMappers in interface YarnContainerAllocatornodes - number of core nodesreducers - number of reducersnodeSlots - number of slots in a core nodeappMasterSlots - number of slots for an application mastermapSlots - number of slots for a mapperreduceSlots - number of slots for a reducerCopyright © 2019. All rights reserved.