YARN-8723. Fix a typo in CS init error message when resource calculator is not correctly set. Contributed by Abhishek Modi.

This commit is contained in:
Weiwei Yang 2018-08-29 10:46:13 +08:00
parent 64ad0298d4
commit 3fa4639421

View File

@ -348,7 +348,7 @@ void initScheduler(Configuration configuration) throws
throw new YarnRuntimeException("RM uses DefaultResourceCalculator which"
+ " used only memory as resource-type but invalid resource-types"
+ " specified " + ResourceUtils.getResourceTypes() + ". Use"
+ " DomainantResourceCalculator instead to make effective use of"
+ " DominantResourceCalculator instead to make effective use of"
+ " these resource-types");
}
this.usePortForNodeName = this.conf.getUsePortForNodeName();