You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2015/07/29 08:22:04 UTC
[jira] [Commented] (KYLIN-912) $KYLIN_HOME/tomcat/temp folder takes
much disk space after long run
[ https://issues.apache.org/jira/browse/KYLIN-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14645529#comment-14645529 ]
Shaofeng SHI commented on KYLIN-912:
------------------------------------
The .seq files were not deleted after the use; will call delete once it be uploaded to Kylin metadata store;
For the "kylin_job_meta*" folders, I checked the code, Kylin already registered to delete it on JVM shutdown (in org.apache.kylin.job.hadoop.AbstractHadoopJob):
{code}
File tmp = File.createTempFile("kylin_job_meta", "");
tmp.delete(); // we need a directory, so delete the file first
File metaDir = new File(tmp, "meta");
metaDir.mkdirs();
metaDir.getParentFile().deleteOnExit();
{code}
But that did not work, as Kylin shutdown by "kill <pid>"; But File.deleteOnExit() "will be attempted only for normal termination of the virtual machine"; So, we either need change the file deletion way, either change the stop script.
> $KYLIN_HOME/tomcat/temp folder takes much disk space after long run
> -------------------------------------------------------------------
>
> Key: KYLIN-912
> URL: https://issues.apache.org/jira/browse/KYLIN-912
> Project: Kylin
> Issue Type: Bug
> Components: General
> Affects Versions: v0.8.1
> Reporter: Shaofeng SHI
> Assignee: Shaofeng SHI
> Fix For: v0.8.1
>
>
> A lot of .seq files and "kylin_job_meta" directories were left in $KYLIN_HOME/tomcat/temp, need be dropped once build job finished;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)