true means that resource requests will not use locality relaxing. Default for this flag is false. public void configure(YarnAppmasterConfigure master) throws Exception { master .withContainerAllocator() .locality(false); } <yarn:master> <yarn:container-allocator locality="false"/> </yarn:master>@param locality the locality flag for resource relaxing @return {@link MasterContainerAllocatorConfigurer} for chaining
| |