|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectml.shifu.guagua.mapreduce.GuaguaMapReduceClient
public class GuaguaMapReduceClient
GuaguaMapReduceClient is the entry point for guagua mapreduce implementation application.
To use it in normal Hadoop mode. Use main(String[]) as entry point.
To run jobs in parallel:
GuaguaMapReduceClient client = new GuaguaMapReduceClient(); client.addJob(args); client.addJob(args); client.run();
| 构造方法摘要 | |
|---|---|
GuaguaMapReduceClient()
Default constructor. |
|
| 方法摘要 | |
|---|---|
static void |
addInputPath(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path)
|
void |
addJob(String[] args)
Add new job to JobControl instance. |
protected double |
calculateProgress(org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl jc,
org.apache.hadoop.mapred.JobClient jobClient)
Compute the progress of the current job submitted through the JobControl object jc to the JobClient jobClient |
org.apache.hadoop.mapreduce.Job |
creatJob(String[] args)
Create Hadoop job according to arguments from main. |
static void |
main(String[] args)
|
protected double |
progressOfRunningJob(org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob cjob,
org.apache.hadoop.mapred.JobClient jobClient)
Returns the progress of a Job j which is part of a submitted JobControl object. |
void |
run()
Run all jobs added to JobControl. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public GuaguaMapReduceClient()
| 方法详细信息 |
|---|
public void addJob(String[] args)
throws IOException
IOException
public void run()
throws IOException
IOException
protected double calculateProgress(org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl jc,
org.apache.hadoop.mapred.JobClient jobClient)
throws IOException
jc - The JobControl object that has been submittedjobClient - The JobClient to which it has been submitted
IOException - In case any IOException connecting to JobTracker.
protected double progressOfRunningJob(org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob cjob,
org.apache.hadoop.mapred.JobClient jobClient)
throws IOException
cjob - - The Job for which progress is requiredjobClient - - the JobClient to which it has been submitted
IOException - In case any IOException connecting to JobTracker.
public static void addInputPath(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path)
throws IOException
IOException
public org.apache.hadoop.mapreduce.Job creatJob(String[] args)
throws IOException
IOException
public static void main(String[] args)
throws IOException,
InterruptedException,
ClassNotFoundException
IOException
InterruptedException
ClassNotFoundException
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||