Created 09-09-2016 02:04 PM
Does anyone know how to remove old jobs from the resource manager web UI: http://<resourcemanager:8088/cluster I assume they are held on the timeline server but they don't seem to ever be removed. The jobs listed there are from February when we began testing the cluster and viewing the jobs in Apache Hue produces an error saying they are expired. Is there anyway to clear the summary completely?
Created 12-28-2016 10:07 PM
Set the retention and aggregations timeline for YARN logging. YARN logs, including summary will be removed after the set timeline.
Go to https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-common/yarn-default.xml and search for "log" and you will find the parameters that can allow you manage log retention, whether is detailed log or aggregated.
I think you are looking for
yarn.resourcemanager.max-completed-applications, which is set to 10,000 by default. You could change that value via Ambari. You may have to restart Ambari. Test in a development or test environment to determine the best combination of configurations for your case.
A good blog, even a bit old:
http://hortonworks.com/blog/simplifying-user-logs-management-and-access-in-yarn/
Created 12-28-2016 10:07 PM
Set the retention and aggregations timeline for YARN logging. YARN logs, including summary will be removed after the set timeline.
Go to https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-common/yarn-default.xml and search for "log" and you will find the parameters that can allow you manage log retention, whether is detailed log or aggregated.
I think you are looking for
yarn.resourcemanager.max-completed-applications, which is set to 10,000 by default. You could change that value via Ambari. You may have to restart Ambari. Test in a development or test environment to determine the best combination of configurations for your case.
A good blog, even a bit old:
http://hortonworks.com/blog/simplifying-user-logs-management-and-access-in-yarn/
Created 01-09-2017 11:22 AM
Many thanks! I've managed to clear the job history.
Created 01-10-2017 06:09 AM
Very elaborate answer!
Created 11-29-2017 09:23 AM
@Constantin Stanca @Dinesh Chitlangia
Hello,
I'm facing the same issue and i've explained it through this question:
I've set "yarn.resourcemanager.max-completed-applications" to 10 and i've restarted my ambari-server. I got the same total of yarn applications through RM UI. Is there any step missed ?
I'll be grateful if you could help me fixing this issue.
Created 12-20-2017 10:26 PM
Restart your RM