Package org.apache.flink.yarn.cli
Class FallbackYarnSessionCli
- java.lang.Object
-
- org.apache.flink.client.cli.AbstractCustomCommandLine
-
- org.apache.flink.yarn.cli.FallbackYarnSessionCli
-
- All Implemented Interfaces:
CustomCommandLine
@Internal public class FallbackYarnSessionCli extends AbstractCustomCommandLine
A stub Yarn Command Line to throw an exception with the correct message when theHADOOP_CLASSPATH
is not set.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.cli.Option
addressOption
protected org.apache.commons.cli.Option
applicationId
protected Configuration
configuration
static String
ID
-
Fields inherited from class org.apache.flink.client.cli.AbstractCustomCommandLine
zookeeperNamespaceOption
-
-
Constructor Summary
Constructors Constructor Description FallbackYarnSessionCli(Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.flink.client.cli.AbstractCustomCommandLine
addRunOptions, handleCliArgsException, handleError, printUsage, toConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.client.cli.CustomCommandLine
parseCommandLineOptions
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
applicationId
protected final org.apache.commons.cli.Option applicationId
-
addressOption
protected final org.apache.commons.cli.Option addressOption
-
configuration
protected final Configuration configuration
-
-
Constructor Detail
-
FallbackYarnSessionCli
public FallbackYarnSessionCli(Configuration configuration)
-
-
Method Detail
-
isActive
public boolean isActive(org.apache.commons.cli.CommandLine commandLine)
Description copied from interface:CustomCommandLine
Signals whether the custom command-line wants to execute or not.- Specified by:
isActive
in interfaceCustomCommandLine
- Parameters:
commandLine
- The command-line options- Returns:
- True if the command-line wants to run, False otherwise
-
addGeneralOptions
public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Description copied from interface:CustomCommandLine
Adds custom options to the existing general options.- Specified by:
addGeneralOptions
in interfaceCustomCommandLine
- Overrides:
addGeneralOptions
in classAbstractCustomCommandLine
- Parameters:
baseOptions
- The existing options.
-
getId
public String getId()
Description copied from interface:CustomCommandLine
Gets the unique identifier of this CustomCommandLine.- Returns:
- A unique identifier
-
-