public class ZooKeeperLeaderElectionHaServices extends AbstractHaServices
/flink
+/cluster_id_1/leader/latch
| | /resource_manager/connection_info
| | /dispatcher/connection_info
| | /rest_server/connection_info
| | /job-id-1/connection_info
| | /job-id-2/connection_info
| |
| |
| +jobgraphs/job-id-1
| | /job-id-2
| +jobs/job-id-1/checkpoints/latest
| | /latest-1
| | /latest-2
| | /checkpoint_id_counter
configuration, ioExecutor, loggerDEFAULT_JOB_ID, DEFAULT_LEADER_ID| 构造器和说明 |
|---|
ZooKeeperLeaderElectionHaServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper,
org.apache.flink.configuration.Configuration configuration,
Executor executor,
BlobStoreService blobStoreService) |
| 限定符和类型 | 方法和说明 |
|---|---|
CheckpointRecoveryFactory |
createCheckpointRecoveryFactory()
Create the checkpoint recovery factory for the job manager.
|
JobGraphStore |
createJobGraphStore()
Create the submitted job graph store for the job manager.
|
protected LeaderRetrievalService |
createLeaderRetrievalService(String componentId)
Create leader retrieval service with specified leaderName.
|
protected void |
deleteZNode(String path) |
protected String |
getLeaderPathForDispatcher()
Get the leader path for Dispatcher.
|
protected String |
getLeaderPathForJobManager(org.apache.flink.api.common.JobID jobID)
Get the leader path for specific JobManager.
|
protected String |
getLeaderPathForResourceManager()
Get the leader path for ResourceManager.
|
protected String |
getLeaderPathForRestServer()
Get the leader path for RestServer.
|
protected void |
internalCleanup()
Clean up the meta data in the distributed system(e.g.
|
protected void |
internalCleanupJobData(org.apache.flink.api.common.JobID jobID)
Clean up the meta data in the distributed system(e.g.
|
protected void |
internalClose()
Closes the components which is used for external operations(e.g.
|
cleanupAllData, close, createBlobStore, getCheckpointRecoveryFactory, getClusterRestEndpointLeaderElection, getClusterRestEndpointLeaderRetriever, getDispatcherLeaderElection, getDispatcherLeaderRetriever, getJobGraphStore, getJobManagerLeaderElection, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getJobResultStore, getResourceManagerLeaderElection, getResourceManagerLeaderRetriever, globalCleanupAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseWithOptionalClean, getWebMonitorLeaderElection, getWebMonitorLeaderRetrieverpublic ZooKeeperLeaderElectionHaServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper, org.apache.flink.configuration.Configuration configuration, Executor executor, BlobStoreService blobStoreService) throws Exception
Exceptionpublic CheckpointRecoveryFactory createCheckpointRecoveryFactory() throws Exception
AbstractHaServicescreateCheckpointRecoveryFactory 在类中 AbstractHaServicesExceptionpublic JobGraphStore createJobGraphStore() throws Exception
AbstractHaServicescreateJobGraphStore 在类中 AbstractHaServicesException - if the submitted job graph store could not be createdprotected void internalClose()
AbstractHaServicesinternalClose 在类中 AbstractHaServicesprotected void internalCleanup()
throws Exception
AbstractHaServicesIf an exception occurs during internal cleanup, we will continue the cleanup in AbstractHaServices.cleanupAllData() and report exceptions only after all cleanup steps have been attempted.
internalCleanup 在类中 AbstractHaServicesException - when do the cleanup operation on external storage.protected void internalCleanupJobData(org.apache.flink.api.common.JobID jobID)
throws Exception
AbstractHaServicesinternalCleanupJobData 在类中 AbstractHaServicesjobID - The identifier of the job to cleanup.Exception - when do the cleanup operation on external storage.protected LeaderRetrievalService createLeaderRetrievalService(String componentId)
AbstractHaServicescreateLeaderRetrievalService 在类中 AbstractHaServicescomponentId - ConfigMap name in Kubernetes or child node path in Zookeeper.protected String getLeaderPathForResourceManager()
AbstractHaServicesgetLeaderPathForResourceManager 在类中 AbstractHaServicesprotected String getLeaderPathForDispatcher()
AbstractHaServicesgetLeaderPathForDispatcher 在类中 AbstractHaServicesprotected String getLeaderPathForJobManager(org.apache.flink.api.common.JobID jobID)
AbstractHaServicesgetLeaderPathForJobManager 在类中 AbstractHaServicesjobID - job idprotected String getLeaderPathForRestServer()
AbstractHaServicesgetLeaderPathForRestServer 在类中 AbstractHaServicesCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.