[ https://issues.apache.org/jira/browse/HBASE-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459334#comment-13459334 ]
stack commented on HBASE-6842: ------------------------------ Does it work Zhou? How is fs.deleteOnExit different from your use of File and then on it doing deleteOnExit. Thanks. > the jar used in coprocessor is not deleted in local which will exhaust the > space of /tmp > ------------------------------------------------------------------------------------------- > > Key: HBASE-6842 > URL: https://issues.apache.org/jira/browse/HBASE-6842 > Project: HBase > Issue Type: Bug > Components: coprocessors > Affects Versions: 0.94.1 > Reporter: Zhou wenjian > Assignee: Zhou wenjian > Priority: Critical > Fix For: 0.96.0, 0.94.3 > > Attachments: HBASE-6842-trunk.patch > > > FileSystem fs = path.getFileSystem(HBaseConfiguration.create()); > Path dst = new Path(System.getProperty("java.io.tmpdir") + > java.io.File.separator +"." + pathPrefix + > "." + className + "." + System.currentTimeMillis() + ".jar"); > fs.copyToLocalFile(path, dst); > fs.deleteOnExit(dst); > change to > File tmpLocal = new File(dst.toString()); > tmpLocal.deleteOnExit(); > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira