public abstract class AbstractCli extends Object implements org.apache.hadoop.util.Tool
| Modifier and Type | Field and Description |
|---|---|
protected ClientContext |
clientContext |
| Constructor and Description |
|---|
AbstractCli(ClientContext cliContext) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
abstract int |
run(String[] args) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
protected ClientContext clientContext
public AbstractCli(ClientContext cliContext)
public abstract int run(String[] args) throws org.apache.commons.cli.ParseException, IOException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, SubmarineException
run in interface org.apache.hadoop.util.Toolorg.apache.commons.cli.ParseExceptionIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionSubmarineExceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2008–2022 Apache Software Foundation. All rights reserved.