Enabling Centralized Logging for MapReduce v1 jobs

Centralized logging is disabled by default for MapReduce v1 jobs.
For MapReduce v1, configure the HADOOP_TASKTRACKER_ROOT_LOGGER property in the hadoop-env.sh file to enable or disable Centralized Logging. The hadoop-env.sh file is located in the following directory: /opt/mapr/hadoop/hadoop-0.20.2/conf/.
  • To disable Centralized Logging, set the value of the HADOOP_TASKTRACKER_ROOT_LOGGER to INFO,DRFA.
  • To enable Centralized Logging, set the value of the HADOOP_TASKTRACKER_ROOT_LOGGER parameter to INFO,maprfsDRFA. If you enable centralized logging while jobs are running, restart all JobTrackers. In a production cluster, restart JobTrackers one at a time to prevent interruption to the jobs running. The jobs running during this process may not have centralized logging enabled.