org.apache.flink.runtime.resourcemanager.ResourceManagerRuntimeServices Java Examples
The following examples show how to use
org.apache.flink.runtime.resourcemanager.ResourceManagerRuntimeServices.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MesosResourceManagerFactory.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public ResourceManager<RegisteredMesosWorkerNode> createResourceManager( Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, JobManagerMetricGroup jobManagerMetricGroup) throws Exception { final ResourceManagerRuntimeServicesConfiguration rmServicesConfiguration = ResourceManagerRuntimeServicesConfiguration.fromConfiguration(configuration); final ResourceManagerRuntimeServices rmRuntimeServices = ResourceManagerRuntimeServices.fromConfiguration( rmServicesConfiguration, highAvailabilityServices, rpcService.getScheduledExecutor()); return new MesosResourceManager( rpcService, getEndpointId(), resourceId, highAvailabilityServices, heartbeatServices, rmRuntimeServices.getSlotManager(), metricRegistry, rmRuntimeServices.getJobLeaderIdService(), clusterInformation, fatalErrorHandler, configuration, mesosServices, schedulerConfiguration, taskManagerParameters, taskManagerContainerSpec, webInterfaceUrl, jobManagerMetricGroup); }
Example #2
Source File: MesosResourceManagerFactory.java From flink with Apache License 2.0 | 5 votes |
@Override public ResourceManager<RegisteredMesosWorkerNode> createActiveResourceManager( Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, JobManagerMetricGroup jobManagerMetricGroup) throws Exception { final ResourceManagerRuntimeServicesConfiguration rmServicesConfiguration = ResourceManagerRuntimeServicesConfiguration.fromConfiguration(configuration); final ResourceManagerRuntimeServices rmRuntimeServices = ResourceManagerRuntimeServices.fromConfiguration( rmServicesConfiguration, highAvailabilityServices, rpcService.getScheduledExecutor()); return new MesosResourceManager( rpcService, getEndpointId(), resourceId, highAvailabilityServices, heartbeatServices, rmRuntimeServices.getSlotManager(), metricRegistry, rmRuntimeServices.getJobLeaderIdService(), clusterInformation, fatalErrorHandler, configuration, mesosServices, schedulerConfiguration, taskManagerParameters, taskManagerContainerSpec, webInterfaceUrl, jobManagerMetricGroup); }
Example #3
Source File: YarnResourceManagerFactory.java From flink with Apache License 2.0 | 5 votes |
@Override public ResourceManager<YarnWorkerNode> createActiveResourceManager( Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, JobManagerMetricGroup jobManagerMetricGroup) throws Exception { final ResourceManagerRuntimeServicesConfiguration rmServicesConfiguration = ResourceManagerRuntimeServicesConfiguration.fromConfiguration(configuration); final ResourceManagerRuntimeServices rmRuntimeServices = ResourceManagerRuntimeServices.fromConfiguration( rmServicesConfiguration, highAvailabilityServices, rpcService.getScheduledExecutor()); return new YarnResourceManager( rpcService, getEndpointId(), resourceId, configuration, System.getenv(), highAvailabilityServices, heartbeatServices, rmRuntimeServices.getSlotManager(), metricRegistry, rmRuntimeServices.getJobLeaderIdService(), clusterInformation, fatalErrorHandler, webInterfaceUrl, jobManagerMetricGroup); }
Example #4
Source File: KubernetesResourceManagerFactory.java From flink with Apache License 2.0 | 5 votes |
@Override public ResourceManager<KubernetesWorkerNode> createResourceManager( Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, ResourceManagerMetricGroup resourceManagerMetricGroup, ResourceManagerRuntimeServices resourceManagerRuntimeServices) { final KubernetesResourceManagerConfiguration kubernetesResourceManagerConfiguration = new KubernetesResourceManagerConfiguration( configuration.getString(KubernetesConfigOptions.CLUSTER_ID), POD_CREATION_RETRY_INTERVAL); return new KubernetesResourceManager( rpcService, resourceId, configuration, highAvailabilityServices, heartbeatServices, resourceManagerRuntimeServices.getSlotManager(), ResourceManagerPartitionTrackerImpl::new, resourceManagerRuntimeServices.getJobLeaderIdService(), clusterInformation, fatalErrorHandler, resourceManagerMetricGroup, KubeClientFactory.fromConfiguration(configuration), kubernetesResourceManagerConfiguration); }
Example #5
Source File: MesosResourceManagerFactory.java From flink with Apache License 2.0 | 5 votes |
@Override public ResourceManager<RegisteredMesosWorkerNode> createResourceManager( Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, ResourceManagerMetricGroup resourceManagerMetricGroup, ResourceManagerRuntimeServices resourceManagerRuntimeServices) throws Exception { final MesosTaskManagerParameters taskManagerParameters = MesosUtils.createTmParameters(configuration, LOG); final ContainerSpecification taskManagerContainerSpec = MesosUtils.createContainerSpec(configuration); return new MesosResourceManager( rpcService, resourceId, highAvailabilityServices, heartbeatServices, resourceManagerRuntimeServices.getSlotManager(), ResourceManagerPartitionTrackerImpl::new, resourceManagerRuntimeServices.getJobLeaderIdService(), clusterInformation, fatalErrorHandler, configuration, mesosServices, schedulerConfiguration, taskManagerParameters, taskManagerContainerSpec, webInterfaceUrl, resourceManagerMetricGroup); }
Example #6
Source File: YarnResourceManagerFactory.java From flink with Apache License 2.0 | 5 votes |
@Override public ResourceManager<YarnWorkerNode> createResourceManager( Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, ResourceManagerMetricGroup resourceManagerMetricGroup, ResourceManagerRuntimeServices resourceManagerRuntimeServices) { return new YarnResourceManager( rpcService, resourceId, configuration, System.getenv(), highAvailabilityServices, heartbeatServices, resourceManagerRuntimeServices.getSlotManager(), ResourceManagerPartitionTrackerImpl::new, resourceManagerRuntimeServices.getJobLeaderIdService(), clusterInformation, fatalErrorHandler, webInterfaceUrl, resourceManagerMetricGroup); }