Kylin元数据备份及还原

备份目录结构:

元数据备份:

1
2
#备份默认路径为:$KYLIN_HOME/meta_backups/meta_year_month_day_hour_minute_second
$KYLIN_HOME/bin/metastore.sh backup

元数据恢复:

1
$KYLIN_HOME/bin/metasotre.sh restore $KYLIN_HOME/meta_backups/meta_year_month_day_hour_minute_second

其他功能查看:
$KYLIN_HOME/bin/metasotre.sh
从Kylin元数据中清理掉无用的资源:

1
2
3
4
#罗列将要被删除的资源
$KYLIN_HOME/bin/metastore.sh clean
#进行删除
$KYLIN_HOME/bin/metastore.sh clean --delete true

注意:删除之前一定要先备份!!!

作者

qrua7

发布于

2017-09-26

更新于

2025-10-28

许可协议

评论

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×