org.apache.flink.runtime.entrypoint.component.FileJobGraphRetriever Java Examples

The following examples show how to use org.apache.flink.runtime.entrypoint.component.FileJobGraphRetriever. 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: MesosJobClusterEntrypoint.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
protected DispatcherResourceManagerComponentFactory<?> createDispatcherResourceManagerComponentFactory(Configuration configuration) {
	return new JobDispatcherResourceManagerComponentFactory(
		new MesosResourceManagerFactory(
			mesosServices,
			schedulerConfiguration,
			taskManagerParameters,
			taskManagerContainerSpec),
		FileJobGraphRetriever.createFrom(configuration));
}
 
Example #2
Source File: MesosJobClusterEntrypoint.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected DispatcherResourceManagerComponentFactory<?> createDispatcherResourceManagerComponentFactory(Configuration configuration) {
	return new JobDispatcherResourceManagerComponentFactory(
		new MesosResourceManagerFactory(
			mesosServices,
			schedulerConfiguration,
			taskManagerParameters,
			taskManagerContainerSpec),
		FileJobGraphRetriever.createFrom(configuration));
}
 
Example #3
Source File: MesosJobClusterEntrypoint.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected DefaultDispatcherResourceManagerComponentFactory createDispatcherResourceManagerComponentFactory(Configuration configuration) throws IOException {
	return DefaultDispatcherResourceManagerComponentFactory.createJobComponentFactory(
		new MesosResourceManagerFactory(
			mesosServices,
			schedulerConfiguration),
		FileJobGraphRetriever.createFrom(configuration, ClusterEntrypointUtils.tryFindUserLibDirectory().orElse(null)));
}
 
Example #4
Source File: YarnJobClusterEntrypoint.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected DefaultDispatcherResourceManagerComponentFactory createDispatcherResourceManagerComponentFactory(Configuration configuration) throws IOException {
	return DefaultDispatcherResourceManagerComponentFactory.createJobComponentFactory(
		YarnResourceManagerFactory.getInstance(),
		FileJobGraphRetriever.createFrom(
				configuration,
				YarnEntrypointUtils.getUsrLibDir(configuration).orElse(null)));
}
 
Example #5
Source File: YarnJobClusterEntrypoint.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
protected DispatcherResourceManagerComponentFactory<?> createDispatcherResourceManagerComponentFactory(Configuration configuration) {
	return new JobDispatcherResourceManagerComponentFactory(
		YarnResourceManagerFactory.INSTANCE,
		FileJobGraphRetriever.createFrom(configuration));
}
 
Example #6
Source File: YarnJobClusterEntrypoint.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected DispatcherResourceManagerComponentFactory<?> createDispatcherResourceManagerComponentFactory(Configuration configuration) {
	return new JobDispatcherResourceManagerComponentFactory(
		YarnResourceManagerFactory.getInstance(),
		FileJobGraphRetriever.createFrom(configuration));
}