public class FlinkYarnSessionCli
extends org.apache.flink.client.cli.AbstractCustomCommandLine<org.apache.hadoop.yarn.api.records.ApplicationId>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_FILE_LOG4J_NAME |
static String |
CONFIG_FILE_LOGBACK_NAME |
| Constructor and Description |
|---|
FlinkYarnSessionCli(org.apache.flink.configuration.Configuration configuration,
String configurationDirectory,
String shortPrefix,
String longPrefix) |
FlinkYarnSessionCli(org.apache.flink.configuration.Configuration configuration,
String configurationDirectory,
String shortPrefix,
String longPrefix,
boolean acceptInteractiveInput) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeneralOptions(org.apache.commons.cli.Options baseOptions) |
void |
addRunOptions(org.apache.commons.cli.Options baseOptions) |
protected org.apache.flink.configuration.Configuration |
applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine) |
AbstractYarnClusterDescriptor |
createClusterDescriptor(org.apache.commons.cli.CommandLine commandLine) |
org.apache.hadoop.yarn.api.records.ApplicationId |
getClusterId(org.apache.commons.cli.CommandLine commandLine) |
org.apache.flink.client.deployment.ClusterSpecification |
getClusterSpecification(org.apache.commons.cli.CommandLine commandLine) |
static Map<String,String> |
getDynamicProperties(String dynamicPropertiesEncoded) |
String |
getId() |
static File |
getYarnPropertiesLocation(String yarnPropertiesFileLocation) |
boolean |
isActive(org.apache.commons.cli.CommandLine commandLine) |
static void |
main(String[] args) |
int |
run(String[] args) |
public static final String CONFIG_FILE_LOGBACK_NAME
public static final String CONFIG_FILE_LOG4J_NAME
public FlinkYarnSessionCli(org.apache.flink.configuration.Configuration configuration,
String configurationDirectory,
String shortPrefix,
String longPrefix)
throws org.apache.flink.util.FlinkException
org.apache.flink.util.FlinkExceptionpublic boolean isActive(org.apache.commons.cli.CommandLine commandLine)
public String getId()
public void addRunOptions(org.apache.commons.cli.Options baseOptions)
addRunOptions in interface org.apache.flink.client.cli.CustomCommandLine<org.apache.hadoop.yarn.api.records.ApplicationId>addRunOptions in class org.apache.flink.client.cli.AbstractCustomCommandLine<org.apache.hadoop.yarn.api.records.ApplicationId>public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
addGeneralOptions in interface org.apache.flink.client.cli.CustomCommandLine<org.apache.hadoop.yarn.api.records.ApplicationId>addGeneralOptions in class org.apache.flink.client.cli.AbstractCustomCommandLine<org.apache.hadoop.yarn.api.records.ApplicationId>public AbstractYarnClusterDescriptor createClusterDescriptor(org.apache.commons.cli.CommandLine commandLine) throws org.apache.flink.util.FlinkException
org.apache.flink.util.FlinkException@Nullable public org.apache.hadoop.yarn.api.records.ApplicationId getClusterId(org.apache.commons.cli.CommandLine commandLine)
public org.apache.flink.client.deployment.ClusterSpecification getClusterSpecification(org.apache.commons.cli.CommandLine commandLine)
throws org.apache.flink.util.FlinkException
org.apache.flink.util.FlinkExceptionprotected org.apache.flink.configuration.Configuration applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine)
throws org.apache.flink.util.FlinkException
applyCommandLineOptionsToConfiguration in class org.apache.flink.client.cli.AbstractCustomCommandLine<org.apache.hadoop.yarn.api.records.ApplicationId>org.apache.flink.util.FlinkExceptionpublic int run(String[] args) throws org.apache.flink.client.cli.CliArgsException, org.apache.flink.util.FlinkException
org.apache.flink.client.cli.CliArgsExceptionorg.apache.flink.util.FlinkExceptionpublic static Map<String,String> getDynamicProperties(String dynamicPropertiesEncoded)
public static void main(String[] args)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.