|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
ml.shifu.guagua.yarn.GuaguaYarnClient
public class GuaguaYarnClient
GuaguaYarnClient is used to submit master-workers computation app on yarn cluster.
TODO clean app resources in HDFS no matter successful or not
| 构造方法摘要 | |
|---|---|
GuaguaYarnClient()
Default constructor. |
|
GuaguaYarnClient(org.apache.hadoop.conf.Configuration conf)
Constructor with Configuration setting. |
|
| 方法摘要 | |
|---|---|
static void |
addInputPath(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path)
|
String |
getAmQueue()
|
org.apache.hadoop.yarn.api.records.ApplicationId |
getAppId()
|
String |
getAppName()
|
long |
getStartTime()
|
boolean |
init(String[] args)
|
static void |
main(String[] args)
|
int |
run(String[] args)
To submit an app to yarn cluster and monitor the status. |
void |
setAmQueue(String amQueue)
|
void |
setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId)
|
void |
setAppName(String appName)
|
void |
setStartTime(long startTime)
|
| 从类 org.apache.hadoop.conf.Configured 继承的方法 |
|---|
getConf, setConf |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public GuaguaYarnClient()
YarnConfiguration as default conf setting.
public GuaguaYarnClient(org.apache.hadoop.conf.Configuration conf)
Configuration setting.
| 方法详细信息 |
|---|
public static void addInputPath(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path)
throws IOException
IOException
public int run(String[] args)
throws Exception
Exceptionpublic boolean init(String[] args)
public org.apache.hadoop.yarn.api.records.ApplicationId getAppId()
public void setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId)
public String getAppName()
public void setAppName(String appName)
public String getAmQueue()
public void setAmQueue(String amQueue)
public long getStartTime()
public void setStartTime(long startTime)
public static void main(String[] args)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||