org.apache.flink.runtime.resourcemanager.ResourceManagerRuntimeServicesConfiguration Java Examples
The following examples show how to use
org.apache.flink.runtime.resourcemanager.ResourceManagerRuntimeServicesConfiguration.
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 | 4 votes |
@Override protected ResourceManagerRuntimeServicesConfiguration createResourceManagerRuntimeServicesConfiguration( Configuration configuration) throws ConfigurationException { return ResourceManagerRuntimeServicesConfiguration.fromConfiguration(configuration, KubernetesWorkerResourceSpecFactory.INSTANCE); }
Example #5
Source File: MesosResourceManagerFactory.java From flink with Apache License 2.0 | 4 votes |
@Override protected ResourceManagerRuntimeServicesConfiguration createResourceManagerRuntimeServicesConfiguration( Configuration configuration) throws ConfigurationException { return ResourceManagerRuntimeServicesConfiguration.fromConfiguration(configuration, MesosWorkerResourceSpecFactory.INSTANCE); }
Example #6
Source File: YarnResourceManagerFactory.java From flink with Apache License 2.0 | 4 votes |
@Override protected ResourceManagerRuntimeServicesConfiguration createResourceManagerRuntimeServicesConfiguration( Configuration configuration) throws ConfigurationException { return ResourceManagerRuntimeServicesConfiguration.fromConfiguration(configuration, YarnWorkerResourceSpecFactory.INSTANCE); }