[ https://issues.apache.org/jira/browse/TEZ-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14051833#comment-14051833 ]
Mohammad Kamrul Islam commented on TEZ-1216: -------------------------------------------- bq. is there a reason for needing the service object? why not just setup deleteOnExit() in the AM's constructor and/or the shutdown hook? The reason was in two folds: ides copied from MRAM and it looks better modularized. We discussed this in the first comment. However. I don't think these are very strong logic. Alternatively, we add these logic in the shutdown hook. Please comment. > Clean up the staging directory when the application completes > ------------------------------------------------------------- > > Key: TEZ-1216 > URL: https://issues.apache.org/jira/browse/TEZ-1216 > Project: Apache Tez > Issue Type: Sub-task > Reporter: Mohammad Kamrul Islam > Assignee: Mohammad Kamrul Islam > Attachments: TEZ-1216.1.patch, TEZ-1216.2.patch > > > This JIRA is a part of TEZ-693. It includes the removal of stage directory > when application's last attempt is done. In addition, it will check a config > to determine whether to auto clean it or not. -- This message was sent by Atlassian JIRA (v6.2#6252)