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.Tool
org.apache.commons.cli.ParseException
IOException
org.apache.hadoop.yarn.exceptions.YarnException
InterruptedException
SubmarineException
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.