Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8EE1BDB44 for ; Thu, 20 Sep 2012 04:53:09 +0000 (UTC) Received: (qmail 48082 invoked by uid 500); 20 Sep 2012 04:53:09 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 47569 invoked by uid 500); 20 Sep 2012 04:53:08 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 47520 invoked by uid 99); 20 Sep 2012 04:53:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 04:53:07 +0000 Date: Thu, 20 Sep 2012 15:53:07 +1100 (NCT) From: "Zhou wenjian (JIRA)" To: issues@hbase.apache.org Message-ID: <920856754.100890.1348116787821.JavaMail.jiratomcat@arcas> In-Reply-To: <1659176039.100741.1348113727973.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HBASE-6842) the jar used in coprocessor is not deleted in local which will exhaust the space of /tmp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459338#comment-13459338 ] Zhou wenjian commented on HBASE-6842: ------------------------------------- @stack in our cluster,it does work. the jar in /tmp will be deleted when the jvm exits. IMO, fs.deleteOnExit means to delete the file in hdfs rather than delete it in local fs. > 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