YARN-3740. Fixed the typo in the configuration name: APPLICATION_HISTORY_PREFIX_MAX_APPS. Contributed by Xuan Gong.

(cherry picked from commit eb6bf91eea)
(cherry picked from commit 68cddb894a)
This commit is contained in:
Zhijie Shen 2015-05-29 18:16:48 -07:00 committed by Vinod Kumar Vavilapalli
parent 85ec6eb37a
commit 3ab820e696
4 changed files with 8 additions and 5 deletions

View File

@ -211,6 +211,9 @@ Release 2.6.1 - 2015-09-09
YARN-3171. Sort by Application id, AppAttempt and ContainerID doesn't work YARN-3171. Sort by Application id, AppAttempt and ContainerID doesn't work
in ATS / RM web ui. (Naganarasimha G R via xgong) in ATS / RM web ui. (Naganarasimha G R via xgong)
YARN-3740. Fixed the typo in the configuration name:
APPLICATION_HISTORY_PREFIX_MAX_APPS. (Xuan Gong via zjshen)
Release 2.6.0 - 2014-11-18 Release 2.6.0 - 2014-11-18
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -1304,9 +1304,9 @@ public class YarnConfiguration extends Configuration {
* REST API or application history protocol and shown in timeline * REST API or application history protocol and shown in timeline
* server web ui. * server web ui.
*/ */
public static final String APPLICATION_HISTORY_PREFIX_MAX_APPS = public static final String APPLICATION_HISTORY_MAX_APPS =
APPLICATION_HISTORY_PREFIX + "max-applications"; APPLICATION_HISTORY_PREFIX + "max-applications";
public static final long DEFAULT_APPLICATION_HISTORY_PREFIX_MAX_APPS = 10000; public static final long DEFAULT_APPLICATION_HISTORY_MAX_APPS = 10000;
/** Timeline service store class */ /** Timeline service store class */
public static final String TIMELINE_SERVICE_STORE = public static final String TIMELINE_SERVICE_STORE =

View File

@ -89,8 +89,8 @@ public class ApplicationHistoryManagerOnTimelineStore extends AbstractService
serverHttpAddress = WebAppUtils.getHttpSchemePrefix(conf) + serverHttpAddress = WebAppUtils.getHttpSchemePrefix(conf) +
WebAppUtils.getAHSWebAppURLWithoutScheme(conf); WebAppUtils.getAHSWebAppURLWithoutScheme(conf);
maxLoadedApplications = maxLoadedApplications =
conf.getLong(YarnConfiguration.APPLICATION_HISTORY_PREFIX_MAX_APPS, conf.getLong(YarnConfiguration.APPLICATION_HISTORY_MAX_APPS,
YarnConfiguration.DEFAULT_APPLICATION_HISTORY_PREFIX_MAX_APPS); YarnConfiguration.DEFAULT_APPLICATION_HISTORY_MAX_APPS);
super.serviceInit(conf); super.serviceInit(conf);
} }

View File

@ -172,7 +172,7 @@ public class TestApplicationHistoryClientService {
// Create a historyManager, and set the max_apps can be loaded // Create a historyManager, and set the max_apps can be loaded
// as 1. // as 1.
Configuration conf = new YarnConfiguration(); Configuration conf = new YarnConfiguration();
conf.setLong(YarnConfiguration.APPLICATION_HISTORY_PREFIX_MAX_APPS, 1); conf.setLong(YarnConfiguration.APPLICATION_HISTORY_MAX_APPS, 1);
ApplicationHistoryManagerOnTimelineStore historyManager2 = ApplicationHistoryManagerOnTimelineStore historyManager2 =
new ApplicationHistoryManagerOnTimelineStore(dataManager, new ApplicationHistoryManagerOnTimelineStore(dataManager,
new ApplicationACLsManager(conf)); new ApplicationACLsManager(conf));