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  阅读(374)  评论(0编辑  收藏  举报