MATLAB Help Center
Namespace: matlab.mapreduce
Configure a MapReduce application for deployment against Hadoop
A DeployHadoopMapReducer object represents executing MapReduce on a Hadoop® cluster with MATLAB® Runtime.
DeployHadoopMapReducer
config = matlab.mapreduce.DeployHadoopMapReducer creates a matlab.mapreduce.DeployHadoopMapReducer object that specifies the default properties for Hadoop execution.
config = matlab.mapreduce.DeployHadoopMapReducer
config
matlab.mapreduce.DeployHadoopMapReducer
Use the resulting object as input to the mapreducer function to specify the configuration properties for Hadoop execution. For deploying a standalone application, pass the matlab.mapreduce.DeployHadoopMapReducer object as input to mapreduce.
mapreducer
mapreduce
config = matlab.mapreduce.DeployHadoopMapReducer(Name,Value) creates a matlab.mapreduce.DeployHadoopMapReducer object with properties specified by one or more name-value pair arguments.
config = matlab.mapreduce.DeployHadoopMapReducer(Name,Value)
Name,Value
expand all
Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.
Name1=Value1,...,NameN=ValueN
Name
Value
Before R2021a, use commas to separate each name and value, and enclose Name in quotes.
HadoopInstallFolder
Path to Hadoop installation, specified as the comma-separated pair consisting of the HadoopInstallFolder and a character vector or a string scalar.
The default value of Hadoop install folder is specified by the environment variables in the order of precedence of MATLAB_HADOOP_INSTALL, HADOOP_PREFIX, and HADOOP_HOME.
MATLAB_HADOOP_INSTALL
HADOOP_PREFIX
HADOOP_HOME
HadoopConfigurationFile
Path to Hadoop application configuration files, specified as the comma-separated pair consisting of the HadoopConfigurationFile and a character vector or a string scalar.
MCRRoot
MATLAB Runtime installation folder for Hadoop cluster, specified as the comma-separated pair consisting of the MCRRoot and a character vector or a string scalar.
MCRRoot specifies the MATLAB Runtime installation folder used by Hadoop when executing mapreduce tasks in Hadoop.
Example: 'MCRRoot','/hd-shared/hadoop-2.2.0/MCR/v84'
'MCRRoot','/hd-shared/hadoop-2.2.0/MCR/v84'
HadoopProperties
A containers.Map object of name-value pairs that specify Hadoop configuration properties for a specific job or application. Name-value pairs must be specified as character vectors.
containers.Map
The properties specified in the containers.Map object are passed as a [GENERIC_OPTION] consisting of name-value pairs signaled by a -D flag to the hadoop shell command.
-D
hadoop
Example:
setenv('HADOOP_PREFIX', '/usr/lib/hadoop') % replace with your Hadoop install location name = {'mapreduce.map.maxattempts','mapreduce.job.reduces'}; value = {'2','1'}; prop = containers.Map(name,value); obj = matlab.mapreduce.DeployHadoopMapReducer('HadoopProperties', prop)
collapse all
Create and use a matlab.mapreduce.DeployHadoopMapReducer object to deploy into a standalone application, and deploy against Hadoop.
config = matlab.mapreduce.DeployHadoopMapReducer('MCRRoot',... '/hd-shared/hadoop-2.2.0/MCR/v84'); mr = mapreducer(config);
mapreduce | mapreducer
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office