Search in sources :

Example 1 with ClusterEntrypoint

use of org.apache.flink.runtime.entrypoint.ClusterEntrypoint in project flink by apache.

the class KubernetesSessionClusterEntrypoint method main.

public static void main(String[] args) {
    // startup checks and logging
    EnvironmentInformation.logEnvironmentInfo(LOG, KubernetesSessionClusterEntrypoint.class.getSimpleName(), args);
    SignalHandler.register(LOG);
    JvmShutdownSafeguard.installAsShutdownHook(LOG);
    final Configuration dynamicParameters = ClusterEntrypointUtils.parseParametersOrExit(args, new DynamicParametersConfigurationParserFactory(), KubernetesSessionClusterEntrypoint.class);
    final ClusterEntrypoint entrypoint = new KubernetesSessionClusterEntrypoint(KubernetesEntrypointUtils.loadConfiguration(dynamicParameters));
    ClusterEntrypoint.runClusterEntrypoint(entrypoint);
}
Also used : DynamicParametersConfigurationParserFactory(org.apache.flink.runtime.entrypoint.DynamicParametersConfigurationParserFactory) Configuration(org.apache.flink.configuration.Configuration) SessionClusterEntrypoint(org.apache.flink.runtime.entrypoint.SessionClusterEntrypoint) ClusterEntrypoint(org.apache.flink.runtime.entrypoint.ClusterEntrypoint)

Aggregations

Configuration (org.apache.flink.configuration.Configuration)1 ClusterEntrypoint (org.apache.flink.runtime.entrypoint.ClusterEntrypoint)1 DynamicParametersConfigurationParserFactory (org.apache.flink.runtime.entrypoint.DynamicParametersConfigurationParserFactory)1 SessionClusterEntrypoint (org.apache.flink.runtime.entrypoint.SessionClusterEntrypoint)1