public abstract class AbstractYarnNonHaServices extends YarnHighAvailabilityServices
Internally, these services put their recovery data into YARN's working directory, except for checkpoints, which are in the configured checkpoint directory. That way, checkpoints can be resumed with a new job/application, even if the complete YARN application is killed and cleaned up.
blobStoreService, FLINK_RECOVERY_DATA_DIR, flinkFileSystem, haDataDirectory, hadoopFileSystem, LOG, workingDirectory| Modifier | Constructor and Description |
|---|---|
protected |
AbstractYarnNonHaServices(org.apache.flink.configuration.Configuration config,
org.apache.hadoop.conf.Configuration hadoopConf)
Creates new YARN high-availability services, configuring the file system and recovery
data directory based on the working directory in the given Hadoop configuration.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.runtime.checkpoint.CheckpointRecoveryFactory |
getCheckpointRecoveryFactory() |
org.apache.flink.runtime.highavailability.RunningJobsRegistry |
getRunningJobsRegistry() |
org.apache.flink.runtime.jobmanager.SubmittedJobGraphStore |
getSubmittedJobGraphStore() |
close, closeAndCleanupAllData, createBlobStore, forSingleJobAppMaster, forYarnTaskManager, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDispatcherLeaderElectionService, getDispatcherLeaderRetriever, getJobManagerLeaderElectionService, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getResourceManagerLeaderElectionService, getResourceManagerLeaderRetriever, getWebMonitorLeaderElectionService, getWebMonitorLeaderRetrieverprotected AbstractYarnNonHaServices(org.apache.flink.configuration.Configuration config,
org.apache.hadoop.conf.Configuration hadoopConf)
throws IOException
This class requires that the default Hadoop file system configured in the given Hadoop configuration is an HDFS.
config - The Flink configuration of this component / process.hadoopConf - The Hadoop configuration for the YARN cluster.IOException - Thrown, if the initialization of the Hadoop file system used by YARN fails.public org.apache.flink.runtime.highavailability.RunningJobsRegistry getRunningJobsRegistry()
throws IOException
IOExceptionpublic org.apache.flink.runtime.checkpoint.CheckpointRecoveryFactory getCheckpointRecoveryFactory()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.