public class FlinkYarnSessionCli extends AbstractCustomCommandLine
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.cli.Option |
addressOption |
protected org.apache.commons.cli.Option |
applicationId |
protected Configuration |
configuration |
static String |
ID |
zookeeperNamespaceOption
Constructor and Description |
---|
FlinkYarnSessionCli(Configuration configuration,
ClusterClientServiceLoader clusterClientServiceLoader,
String configurationDirectory,
String shortPrefix,
String longPrefix,
boolean acceptInteractiveInput) |
FlinkYarnSessionCli(Configuration configuration,
String configurationDirectory,
String shortPrefix,
String longPrefix) |
FlinkYarnSessionCli(Configuration configuration,
String configurationDirectory,
String shortPrefix,
String longPrefix,
boolean acceptInteractiveInput) |
Modifier and Type | Method and Description |
---|---|
void |
addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Adds custom options to the existing general options.
|
void |
addRunOptions(org.apache.commons.cli.Options baseOptions)
Adds custom options to the existing run options.
|
static Map<String,String> |
getDynamicProperties(String dynamicPropertiesEncoded) |
String |
getId()
Gets the unique identifier of this CustomCommandLine.
|
static File |
getYarnPropertiesLocation(String yarnPropertiesFileLocation) |
boolean |
isActive(org.apache.commons.cli.CommandLine commandLine)
Signals whether the custom command-line wants to execute or not.
|
static void |
main(String[] args) |
int |
run(String[] args) |
Configuration |
toConfiguration(org.apache.commons.cli.CommandLine commandLine)
Materializes the command line arguments in the given
CommandLine to a Configuration and returns it. |
handleCliArgsException, handleError, printUsage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseCommandLineOptions
public static final String ID
protected final org.apache.commons.cli.Option applicationId
protected final org.apache.commons.cli.Option addressOption
protected final Configuration configuration
public FlinkYarnSessionCli(Configuration configuration, String configurationDirectory, String shortPrefix, String longPrefix) throws FlinkException
FlinkException
public FlinkYarnSessionCli(Configuration configuration, String configurationDirectory, String shortPrefix, String longPrefix, boolean acceptInteractiveInput) throws FlinkException
FlinkException
public FlinkYarnSessionCli(Configuration configuration, ClusterClientServiceLoader clusterClientServiceLoader, String configurationDirectory, String shortPrefix, String longPrefix, boolean acceptInteractiveInput) throws FlinkException
FlinkException
public boolean isActive(org.apache.commons.cli.CommandLine commandLine)
CustomCommandLine
isActive
in interface CustomCommandLine
commandLine
- The command-line optionspublic void addRunOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLine
addRunOptions
in interface CustomCommandLine
addRunOptions
in class AbstractCustomCommandLine
baseOptions
- The existing options.public Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine) throws FlinkException
CustomCommandLine
CommandLine
to a Configuration
and returns it.toConfiguration
in interface CustomCommandLine
toConfiguration
in class AbstractCustomCommandLine
FlinkException
public int run(String[] args) throws CliArgsException, FlinkException
CliArgsException
FlinkException
public static Map<String,String> getDynamicProperties(String dynamicPropertiesEncoded)
public static void main(String[] args)
public static File getYarnPropertiesLocation(@Nullable String yarnPropertiesFileLocation)
public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLine
addGeneralOptions
in interface CustomCommandLine
addGeneralOptions
in class AbstractCustomCommandLine
baseOptions
- The existing options.public String getId()
CustomCommandLine
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.