2.5. Set Up Hadoop Metrics

On each host in the cluster:

  1. Stop the Hadoop services.

  2. Change to the Hadoop configuration directory.

    cd $HADOOP_CONF_DIR
  3. Copy the Ganglia metrics properties file into place.

    mv hadoop-metrics2.properties-GANGLIA  hadoop-metrics2.properties
  4. Edit the metrics properties file and set the Ganglia server hostname.

    namenode.sink.ganglia.servers=my.ganglia.server.hostname:8661
    datanode.sink.ganglia.servers=my.ganglia.server.hostname:8660
    jobtracker.sink.ganglia.servers=my.ganglia.server.hostname:8662
    tasktracker.sink.ganglia.servers=my.ganglia.server.hostname:8660
    maptask.sink.ganglia.servers=my.ganglia.server.hostname:8660
    reducetask.sink.ganglia.servers=my.ganglia.server.hostname:8660
  5. Restart the Hadoop services.


loading table of contents...