...
The Resources API, if called with two arguments, sets both the memory used in megabytes and the number of virtual cores used.
MapReduce Program Examples
For an example, the how-to guide Batch Data Processing with CDAP demonstrates the use of MapReduce.