cluster mapreduce set

Sets the cluster-wide MapReduce mode.

WARNING
This command is deprecated alongside MapReduce v1.

Syntax

CLI
maprcli cluster mapreduce set -mode yarn 
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/cluster/mapreduce/set?<parameters>

Parameters

Parameter Description

mode

The MapReduce mode of the cluster. Enter yarn to use the Resource Manager and Node Manager to run MapReduce jobs or applications.

Examples

Sets the MapReduce mode for the cluster to yarn.

CLI
maprcli cluster mapreduce set -mode yarn 
REST
curl -k -u <username> -X POST https://abc.sj.us:8443/rest/cluster/mapreduce/set?mode=yarn
{"timestamp":1715235732875,"timeofday":"2024-05-08 11:22:12.875 GMT-0700 PM","status":"OK","total":1,"data":[{"default_mode":"yarn","mapreduce_version":"3.3.5"}]}