hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhou wenjian (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-6842) the jar used in coprocessor is not deleted in local which will exhaust the space of /tmp
Date Thu, 20 Sep 2012 04:43:10 GMT

     [ https://issues.apache.org/jira/browse/HBASE-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zhou wenjian updated HBASE-6842:
--------------------------------

    Attachment: HBASE-6842-trunk.patch
    
> 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

Mime
View raw message