Package ml.shifu.guagua.mapreduce
Class GuaguaMRUnitDriver<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>
- java.lang.Object
-
- ml.shifu.guagua.unit.GuaguaUnitDriver<MASTER_RESULT,WORKER_RESULT>
-
- ml.shifu.guagua.mapreduce.GuaguaMRUnitDriver<MASTER_RESULT,WORKER_RESULT>
-
- Type Parameters:
MASTER_RESULT- master result for computation in each iteration.WORKER_RESULT- worker result for computation in each iteration.
@Deprecated public class GuaguaMRUnitDriver<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable> extends ml.shifu.guagua.unit.GuaguaUnitDriver<MASTER_RESULT,WORKER_RESULT>
Deprecated.GuaguaMRUnitDriveris used to run in-memory guagua application by using hadoop MapReduce splits. Please check ml.shifu.guagua.mapreduce.example.sum.SumTest in guagua-mapreduce-examples project.
-
-
Constructor Summary
Constructors Constructor Description GuaguaMRUnitDriver(Properties props)Deprecated.A only constructor here for local in-memory guagua job.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<ml.shifu.guagua.io.GuaguaFileSplit[]>generateWorkerSplits(String inputs)Deprecated.protected List<org.apache.hadoop.fs.FileStatus>listStatus(org.apache.hadoop.conf.Configuration conf, String input)Deprecated.List input directories.
-
-
-
Constructor Detail
-
GuaguaMRUnitDriver
public GuaguaMRUnitDriver(Properties props)
Deprecated.A only constructor here for local in-memory guagua job. Please check ml.shifu.guagua.mapreduce.example.sum.SumTest in guagua-mapreduce-examples project.- Parameters:
props- set all the configurations like input, output and ..
-
-
Method Detail
-
generateWorkerSplits
public List<ml.shifu.guagua.io.GuaguaFileSplit[]> generateWorkerSplits(String inputs) throws IOException
Deprecated.- Specified by:
generateWorkerSplitsin classml.shifu.guagua.unit.GuaguaUnitDriver<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>- Throws:
IOException
-
listStatus
protected List<org.apache.hadoop.fs.FileStatus> listStatus(org.apache.hadoop.conf.Configuration conf, String input) throws IOException
Deprecated.List input directories. Subclasses may override to, e.g., select only files matching a regular expression.- Parameters:
conf- the job configurationinput- the input file path- Returns:
- array of FileStatus objects
- Throws:
IOException- if zero items or any IOException for input files.
-
-