mapreducer - Define deployed execution for mapreduce - MATLAB (original) (raw)
Main Content
Define deployed execution for mapreduce
Syntax
Description
Use this function with MATLAB® Compiler™ to specify information about the execution environment for standalone applications that execute against Hadoop®.
mapreducer([config](#bujjsjg-1-config))
specifies execution environment. When deploying a standalone application against Hadoop, config
is an object of matlab.mapreduce.DeployHadoopMapReducer
class.
[mr](#bujjsjg-1-mr) = mapreducer([config](#bujjsjg-1-config))
returns a MapReducer object to specify the execution environment. You can define MapReducer objects, allowing you to swap execution environments by passing one as an input argument to mapreduce
.
Examples
Create a mapreducer Object in Deployed Mode
mr = mapreducer(... matlab.mapreduce.DeployHadoopMapReducer('MCRRoot',... '/hd-shared/hadoop-2.2.0/MCR/v84'))
Input Arguments
mapreducer
object for running in deployed environment, specified as a matlab.mapreduce.DeployHadoopMapReducer
object.
Example: config = mapreducer(matlab.mapreduce.DeployHadoopMapReducer('MCRRoot','/hd-shared/hadoop-2.2.0/MCR/v84'))
Output Arguments
Execution environment for mapreduce
, returned as a mapreducer
object.
Tips
mapreducer
andmapreducer(0)
enables different configurations based on the products you have. In MATLAB, themapreduce
function automatically runs using aSerialMapReducer
. For more information, see mapreducer.
If you have Parallel Computing Toolbox™, see the function reference page for mapreducer (Parallel Computing Toolbox) for additional information.
Version History
Introduced in R2014b