List of usage examples for org.apache.hadoop.yarn.conf YarnConfiguration TIMELINE_SERVICE_STORE
String TIMELINE_SERVICE_STORE
To view the source code for org.apache.hadoop.yarn.conf YarnConfiguration TIMELINE_SERVICE_STORE.
Click Source Link
From source file:cascading.platform.tez.Hadoop2TezPlatform.java
License:Open Source License
protected boolean setTimelineStore(Configuration configuration) { try {/*from w w w.ja v a 2s . c o m*/ // try hadoop 2.6 Class<?> target = Util.loadClass("org.apache.hadoop.yarn.server.timeline.TimelineStore"); Class<?> type = Util.loadClass("org.apache.hadoop.yarn.server.timeline.MemoryTimelineStore"); configuration.setClass(YarnConfiguration.TIMELINE_SERVICE_STORE, type, target); try { // hadoop 2.5 has the above classes, but this one is also necessary for the timeline service with acls to function. Util.loadClass("org.apache.hadoop.yarn.api.records.timeline.TimelineDomain"); } catch (CascadingException exception) { configuration.setBoolean(TezConfiguration.TEZ_AM_ALLOW_DISABLED_TIMELINE_DOMAINS, true); } return true; } catch (CascadingException exception) { try { // try hadoop 2.4 Class<?> target = Util.loadClass( "org.apache.hadoop.yarn.server.applicationhistoryservice.timeline.TimelineStore"); Class<?> type = Util.loadClass( "org.apache.hadoop.yarn.server.applicationhistoryservice.timeline.MemoryTimelineStore"); configuration.setClass(YarnConfiguration.TIMELINE_SERVICE_STORE, type, target); configuration.setBoolean(TezConfiguration.TEZ_AM_ALLOW_DISABLED_TIMELINE_DOMAINS, true); return true; } catch (CascadingException ignore) { return false; } } }
From source file:org.Microsoft.Telemetry.IntermediateHistoryStore.java
License:Open Source License
/** * This method Initializes all objects of the Telemetry service. * * @throws IOException ,YarnException//from w w w . jav a 2 s. c o m */ private void initialization(Configuration conf) throws YarnException, IOException { originalStorage = ReflectionUtils .newInstance(conf.getClass(YarnConfiguration.TIMELINE_SERVICE_STORE + "-old", LeveldbTimelineStore.class, TimelineStore.class), conf); serviceInformation.initialization(conf); if (originalStorage != null) { LOG.info(PATTERN_LOG_INFO + "Timeline server Storage initialized successfully....!"); LOG2.info(PATTERN_LOG_INFO + "Timeline server Storage initialized successfully....!"); } else { LOG.error(PATTERN_LOG_ERROR + "Timeline server Storage Initialization failed"); } }