@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class YarnCLI
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Modifier and Type | Field and Description |
---|---|
protected YarnClient |
client |
static String |
FAIL_CMD |
static String |
HELP_CMD |
static String |
KILL_CMD |
static String |
LIST_CMD |
static String |
MOVE_TO_QUEUE_CMD |
static String |
SIGNAL_CMD |
static String |
STATUS_CMD |
protected PrintStream |
syserr |
protected PrintStream |
sysout |
Constructor and Description |
---|
YarnCLI() |
Modifier and Type | Method and Description |
---|---|
protected YarnClient |
createYarnClient() |
YarnClient |
getClient() |
void |
setClient(YarnClient client) |
void |
setSysErrPrintStream(PrintStream syserr) |
void |
setSysOutPrintStream(PrintStream sysout) |
void |
stop() |
public static final String STATUS_CMD
public static final String LIST_CMD
public static final String KILL_CMD
public static final String FAIL_CMD
public static final String MOVE_TO_QUEUE_CMD
public static final String HELP_CMD
public static final String SIGNAL_CMD
protected PrintStream sysout
protected PrintStream syserr
protected YarnClient client
protected YarnClient createYarnClient()
public void setSysOutPrintStream(PrintStream sysout)
public void setSysErrPrintStream(PrintStream syserr)
public YarnClient getClient()
public void setClient(YarnClient client)
public void stop()
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.