[ https://issues.apache.org/jira/browse/HIVE-1306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856999#action_12856999 ]
Ning Zhang commented on HIVE-1306: ---------------------------------- Does this works if user kill -9 of the Hive CLI? Also is it possible to add a unit test for this? Also what's different between jobScratchDir and scratchDir? If the tmp directory is under hdfs://tmp we should be able to clean it up using OutputCommitter, which IMO is a cleaner solution. Am I missing something? > cleanup the jobscratchdir > ------------------------- > > Key: HIVE-1306 > URL: https://issues.apache.org/jira/browse/HIVE-1306 > Project: Hadoop Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Namit Jain > Assignee: Namit Jain > Fix For: 0.6.0 > > Attachments: hive.1306.1.patch > > > Currently, the job scratch directory is cleaned up at the end of the hive > query - > It is in a finally block, which will not work if the process is killed. > It should be a shutdown hook - which will take care of these scenarios. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira