shell脚本 快照还原Hbase数据库 - Oracle-fans - 博客园
shell脚本 快照还原Hbase数据库
#!/bin/bash
for i in $(cat ./hbaseTable);do
echo "disable '$i'" | hbase shell
echo "restore_snapshot '$i-Snapshot-1220'" | hbase shell
echo "enable '$i'" | hbase shell
done
posted @ 2018-12-21 17:01 Oracle-fans 阅读(318) 评论(0) 编辑 收藏 举报
Copyright © 2021 Oracle-fans
Powered by .NET 5.0 on Kubernetes
创建时间:2021-09-15 18:13
넶浏览量:0