@Internal public class FallbackYarnSessionCli extends AbstractCustomCommandLine
HADOOP_CLASSPATH
is not set.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 |
---|
FallbackYarnSessionCli(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Adds custom options to the existing general options.
|
String |
getId()
Gets the unique identifier of this CustomCommandLine.
|
boolean |
isActive(org.apache.commons.cli.CommandLine commandLine)
Signals whether the custom command-line wants to execute or not.
|
addRunOptions, handleCliArgsException, handleError, printUsage, toConfiguration
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 FallbackYarnSessionCli(Configuration configuration)
public boolean isActive(org.apache.commons.cli.CommandLine commandLine)
CustomCommandLine
isActive
in interface CustomCommandLine
commandLine
- The command-line optionspublic 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.