Configuring Log Retention Time for MapReduce v1 Jobs

You can configure the log retention time, which defaults to one day after a job completes, in the mapred-site.xml file.The mapred-site.xml file for MapReduce v1 is in the following directory: /opt/mapr/hadoop/hadoop-0.20.2/conf/mapred-site.xml
Set the value of mapred.userlog.retain.hours to the number of hours that you want the cluster to retain logs after a jobs completes.