I don't think anything is there like this based on the number of jobs. Can you give me the use case for this?
If you want to delete the old history files you have a provision in the history server. You can use these configuration and change the value.
mapreduce.jobhistory.max-age-ms : The maximum age of a job history file before it is deleted from the history server.
Default value is : 7 * 24 * 60 * 60 * 1000L(i.e 1 week)
If you want to reduce the age of the history files you can modify this, so that after this much of time will be deleted by Job History Server.
From: Pedro Sá da Costa [mailto:[EMAIL PROTECTED]]
Sent: 18 June 2013 12:35
Subject: I just want the last 4 jobs in the job history in Yarn?
Is it possible to say that I just want the last 4 jobs in the job history in Yarn?