ml.shifu.guagua.yarn
类 GuaguaYarnClient

java.lang.Object
  继承者 org.apache.hadoop.conf.Configured
      继承者 ml.shifu.guagua.yarn.GuaguaYarnClient
所有已实现的接口:
org.apache.hadoop.conf.Configurable

public class GuaguaYarnClient
extends org.apache.hadoop.conf.Configured

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
 

构造方法详细信息

GuaguaYarnClient

public GuaguaYarnClient()
Default constructor. Use YarnConfiguration as default conf setting.


GuaguaYarnClient

public GuaguaYarnClient(org.apache.hadoop.conf.Configuration conf)
Constructor with Configuration setting.

方法详细信息

addInputPath

public static void addInputPath(org.apache.hadoop.conf.Configuration conf,
                                org.apache.hadoop.fs.Path path)
                         throws IOException
抛出:
IOException

run

public int run(String[] args)
        throws Exception
To submit an app to yarn cluster and monitor the status.

抛出:
Exception

init

public boolean init(String[] args)

getAppId

public org.apache.hadoop.yarn.api.records.ApplicationId getAppId()

setAppId

public void setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId)

getAppName

public String getAppName()

setAppName

public void setAppName(String appName)

getAmQueue

public String getAmQueue()

setAmQueue

public void setAmQueue(String amQueue)

getStartTime

public long getStartTime()

setStartTime

public void setStartTime(long startTime)

main

public static void main(String[] args)


Copyright © 2015. All Rights Reserved.