YARN-6561. Update exception message during timeline collector aux service initialization. (Vrushali C via Haibo Chen)

This commit is contained in:
Haibo Chen 2017-05-09 21:37:30 -07:00
parent 461ee44d28
commit ab2bb93a2a
1 changed files with 6 additions and 1 deletions

View File

@ -73,7 +73,12 @@ public PerNodeTimelineCollectorsAuxService() {
@Override
protected void serviceInit(Configuration conf) throws Exception {
if (!YarnConfiguration.timelineServiceV2Enabled(conf)) {
throw new YarnException("Timeline service v2 is not enabled");
throw new YarnException(
"Looks like timeline_collector is set as an auxillary service in "
+ YarnConfiguration.NM_AUX_SERVICES
+ ". But Timeline service v2 is not enabled,"
+ " so timeline_collector needs to be removed"
+ " from that list of auxillary services.");
}
collectorLingerPeriod =
conf.getLong(YarnConfiguration.ATS_APP_COLLECTOR_LINGER_PERIOD_IN_MS,