public interface YarnContainerAllocator
| 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.
|
int getMaxMappers(int nodes,
int reducers,
int nodeSlots,
int appMasterSlots,
int mapSlots,
int reduceSlots)
nodes - 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.