Search in sources :

Example 1 with PackagedProgramRetriever

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();
}
Also used : DefaultPackagedProgramRetriever(org.apache.flink.client.program.DefaultPackagedProgramRetriever) PackagedProgramRetriever(org.apache.flink.client.program.PackagedProgramRetriever) File(java.io.File)

Example 2 with PackagedProgramRetriever

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();
}
Also used : DefaultPackagedProgramRetriever(org.apache.flink.client.program.DefaultPackagedProgramRetriever) PackagedProgramRetriever(org.apache.flink.client.program.PackagedProgramRetriever) ApplicationConfiguration(org.apache.flink.client.deployment.application.ApplicationConfiguration)

Example 3 with PackagedProgramRetriever

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();
}
Also used : DefaultPackagedProgramRetriever(org.apache.flink.client.program.DefaultPackagedProgramRetriever) PackagedProgramRetriever(org.apache.flink.client.program.PackagedProgramRetriever) ApplicationConfiguration(org.apache.flink.client.deployment.application.ApplicationConfiguration)

Aggregations

DefaultPackagedProgramRetriever (org.apache.flink.client.program.DefaultPackagedProgramRetriever)3 PackagedProgramRetriever (org.apache.flink.client.program.PackagedProgramRetriever)3 ApplicationConfiguration (org.apache.flink.client.deployment.application.ApplicationConfiguration)2 File (java.io.File)1