use of org.apache.flink.client.program.PackagedProgramRetriever in project flink by apache.
the class StandaloneApplicationClusterEntryPoint method getPackagedProgram.
private static PackagedProgram getPackagedProgram(final StandaloneApplicationClusterConfiguration clusterConfiguration, Configuration flinkConfiguration) throws FlinkException {
final File userLibDir = ClusterEntrypointUtils.tryFindUserLibDirectory().orElse(null);
final PackagedProgramRetriever programRetriever = DefaultPackagedProgramRetriever.create(userLibDir, clusterConfiguration.getJobClassName(), clusterConfiguration.getArgs(), flinkConfiguration);
return programRetriever.getPackagedProgram();
}
use of org.apache.flink.client.program.PackagedProgramRetriever in project flink by apache.
the class KubernetesApplicationClusterEntrypoint method getPackagedProgram.
private static PackagedProgram getPackagedProgram(final Configuration configuration) throws FlinkException {
final ApplicationConfiguration applicationConfiguration = ApplicationConfiguration.fromConfiguration(configuration);
final PackagedProgramRetriever programRetriever = getPackagedProgramRetriever(configuration, applicationConfiguration.getProgramArguments(), applicationConfiguration.getApplicationClassName());
return programRetriever.getPackagedProgram();
}
use of org.apache.flink.client.program.PackagedProgramRetriever in project flink by apache.
the class YarnApplicationClusterEntryPoint method getPackagedProgram.
private static PackagedProgram getPackagedProgram(final Configuration configuration) throws FlinkException {
final ApplicationConfiguration applicationConfiguration = ApplicationConfiguration.fromConfiguration(configuration);
final PackagedProgramRetriever programRetriever = getPackagedProgramRetriever(configuration, applicationConfiguration.getProgramArguments(), applicationConfiguration.getApplicationClassName());
return programRetriever.getPackagedProgram();
}
Aggregations