You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bi...@apache.org on 2018/01/26 05:13:07 UTC

[4/5] kylin git commit: added Chinese version of howto_cleanup_storage

added Chinese version of howto_cleanup_storage

Signed-off-by: Billy Liu <bi...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/59d169cb
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/59d169cb
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/59d169cb

Branch: refs/heads/document
Commit: 59d169cb339dde48db763eb9d9977f7b839e8996
Parents: 2c9c574
Author: link3280 <49...@qq.com>
Authored: Sun Oct 22 14:08:21 2017 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Fri Jan 26 13:09:53 2018 +0800

----------------------------------------------------------------------
 .../_docs21/howto/howto_cleanup_storage.cn.md   | 21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/59d169cb/website/_docs21/howto/howto_cleanup_storage.cn.md
----------------------------------------------------------------------
diff --git a/website/_docs21/howto/howto_cleanup_storage.cn.md b/website/_docs21/howto/howto_cleanup_storage.cn.md
new file mode 100644
index 0000000..13e27e9
--- /dev/null
+++ b/website/_docs21/howto/howto_cleanup_storage.cn.md
@@ -0,0 +1,21 @@
+---
+layout: docs21
+title:  清理存储
+categories: howto
+permalink: /cn/docs21/howto/howto_cleanup_storage.html
+---
+
+Kylin在构建cube期间会在HDFS上生成中间文件;除此之外,当清理/删除/合并cube时,一些HBase表可能被遗留在HBase却以后再也不会被查询;虽然Kylin已经开始做自动化的垃圾回收,但不一定能覆盖到所有的情况;你可以定期做离线的存储清理:
+
+步骤:
+1. 检查哪些资源可以清理,这一步不会删除任何东西:
+{% highlight Groff markup %}
+export KYLIN_HOME=/path/to/kylin_home
+${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.tool.StorageCleanupJob --delete false
+{% endhighlight %}
+请将这里的 (version) 替换为你安装的Kylin jar版本。
+2. 你可以抽查一两个资源来检查它们是否已经没有被引用了;然后加上“--delete true”选项进行清理。
+{% highlight Groff markup %}
+${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.tool.StorageCleanupJob --delete true
+{% endhighlight %}
+完成后,中间HDFS上的中间文件和HTable会被移除。