Updated on 2023-08-31 GMT+08:00

MapReduce Sample Project

To obtain an MRS sample project, visit https://github.com/huaweicloud/huaweicloud-mrs-example and switch to the branch that matches the MRS cluster version. Download the package to the local PC and decompress it to obtain the sample project of each component.

MRS provides the following MapReduce sample projects.
Table 1 MapReduce sample projects

Sample Project Location

Description

mapreduce-example-security

  • The following is an application development example of MapReduce statistics:

    This section provides an application development example of MapReduce statistics. The CollectionMapper class is used to analyze and process data and output data required by users.

    For details about related examples, see MapReduce Statistics Sample Project.

  • The following is an application development example for MapReduce jobs to access multiple components:

    This section uses MapReduce accessing HDFS, HBase, and Hive as an example to describe how to compile a MapReduce job to access multiple service components. helping you to develop for key operations such as authentication and configuration loading.

    For details about related examples, see MapReduce Accessing Multi-Component Example Project.