This is documentation for MapR Version 5.0. You can also refer to MapR documentation for the latest release.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The files direct MapR where to output MRv1 job metrics and service metrics reports. You can output the reports to file (FileContext), to Ganglia 3.1 (MapRGangliaContext31), or disable the output. 

There are two files:

  • /opt/mapr/hadoop/hadoop-0.2.0/conf/ specifies output for MRv1 job metrics
  • /opt/mapr/conf/ specifies output for MapR-specific services

The following table describes the parameters for each service in the files.




The class that implements the interface responsible for sending the service metrics to the appropriate handler. When implementing a class that sends metrics to Ganglia, set this property to the class name.


The interval between 2 service metrics data exports to the appropriate interface. This is independent of how often are the metrics updated in the framework.


The path to the file where service metrics are exported when the cldb.class property is set to FileContext.


The location of the gmon or gmeta that is aggregating metrics for this instance of the service, when the cldb.class property is set to GangliaContext.

By default, the CLDB and FileServer metrics are sent via unicast to the Ganglia gmon server running on localhost. To send the metrics directly to a Gmeta server, change the cldb.servers property to the hostname of the Gmeta server. To send the metrics to a multicast channel, change the cldb.servers property to the IP address of the multicast channel.


Specifies whether the metrics being sent out from the server should be spoofed as coming from another server. All our fileserver metrics are also on cldb, but to make it appear to end users as if these properties were emitted by fileserver host, we spoof the metrics to Ganglia using this property. Currently only used for the FileServer service.

Configure Metrics

  1. Edit the appropriate file. 
    1. For the MapR-FS and the CLDB edit /opt/mapr/conf/ on all CLDB nodes.
    2. For MRv1 Metrics, edit /opt/mapr/hadoop/hadoop-0.2.0/conf/ on all metrics nodes.
  2. In the sections specific to the service:
    • Un-comment the lines pertaining to the context to which you wish the service to send metrics.
    • Comment out the lines pertaining to other contexts. 
  3. Restart the service.

Disable Metrics

Comment out the following parameters in the /opt/mapr/hadoop/hadoop-0.2.0/conf/ file to disable job metrics.

  • maprmepredvariant.class=com.mapr.job.mngmnt.hadoop.metrics.MaprRPCContext
  • maprmepredvariant.period=10
  • maprmapred.class=com.mapr.job.mngmnt.hadoop.metrics.MaprRPCContextFinal
  • maprmapred.period=10
For information on how to enable or disable MapR-FS and CLDB metrics, see service metrics.


The files are organized into sections for each service that provides metrics. Each section is divided into subsections for the three contexts.

MRv1 Job Metrics Example

The following file disables MRv1 job metrics in the /opt/mapr/hadoop/hadoop-0.2.0/conf/ file:

MapR-FS and CLDB Metrics Example

The following example enables the MapRGangliaContext31 context for the MapR-FS and the CLDB in the /opt/mapr/conf/ file:

  • No labels