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

collapse all

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

collapse all

Execution environment for mapreduce, returned as a mapreducer object.

Tips

Version History

Introduced in R2014b