public class YarnPreConfiguredMasterNonHaServices extends AbstractYarnNonHaServices
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.
A typical YARN setup that uses these HA services first starts the ResourceManager inside the ApplicationMaster and puts its RPC endpoint address into the configuration with which the TaskManagers are started. Because of this static addressing scheme, the setup cannot handle failures of the JobManager and ResourceManager, which are running as part of the Application Master.
HighAvailabilityServicesblobStoreService, FLINK_RECOVERY_DATA_DIR, flinkFileSystem, haDataDirectory, hadoopFileSystem, LOG, workingDirectory| Constructor and Description |
|---|
YarnPreConfiguredMasterNonHaServices(org.apache.flink.configuration.Configuration config,
org.apache.hadoop.conf.Configuration hadoopConf,
org.apache.flink.runtime.highavailability.HighAvailabilityServicesUtils.AddressResolution addressResolution)
Creates new YarnPreConfiguredMasterHaServices for the given Flink and YARN configuration.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.runtime.leaderelection.LeaderElectionService |
getDispatcherLeaderElectionService() |
org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService |
getDispatcherLeaderRetriever() |
org.apache.flink.runtime.leaderelection.LeaderElectionService |
getJobManagerLeaderElectionService(org.apache.flink.api.common.JobID jobID) |
org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService |
getJobManagerLeaderRetriever(org.apache.flink.api.common.JobID jobID) |
org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService |
getJobManagerLeaderRetriever(org.apache.flink.api.common.JobID jobID,
String defaultJobManagerAddress) |
org.apache.flink.runtime.leaderelection.LeaderElectionService |
getResourceManagerLeaderElectionService() |
org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService |
getResourceManagerLeaderRetriever() |
org.apache.flink.runtime.leaderelection.LeaderElectionService |
getWebMonitorLeaderElectionService() |
org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService |
getWebMonitorLeaderRetriever() |
getCheckpointRecoveryFactory, getRunningJobsRegistry, getSubmittedJobGraphStoreclose, closeAndCleanupAllData, createBlobStore, forSingleJobAppMaster, forYarnTaskManager, isClosedpublic YarnPreConfiguredMasterNonHaServices(org.apache.flink.configuration.Configuration config,
org.apache.hadoop.conf.Configuration hadoopConf,
org.apache.flink.runtime.highavailability.HighAvailabilityServicesUtils.AddressResolution addressResolution)
throws IOException
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.org.apache.flink.configuration.IllegalConfigurationException - Thrown, if the Flink configuration does not properly describe the ResourceManager address and port.public org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService getResourceManagerLeaderRetriever()
public org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService getDispatcherLeaderRetriever()
public org.apache.flink.runtime.leaderelection.LeaderElectionService getResourceManagerLeaderElectionService()
public org.apache.flink.runtime.leaderelection.LeaderElectionService getDispatcherLeaderElectionService()
public org.apache.flink.runtime.leaderelection.LeaderElectionService getJobManagerLeaderElectionService(org.apache.flink.api.common.JobID jobID)
public org.apache.flink.runtime.leaderelection.LeaderElectionService getWebMonitorLeaderElectionService()
public org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService getJobManagerLeaderRetriever(org.apache.flink.api.common.JobID jobID)
public org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService getJobManagerLeaderRetriever(org.apache.flink.api.common.JobID jobID,
String defaultJobManagerAddress)
public org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService getWebMonitorLeaderRetriever()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.