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

原文地址:https://www.cnblogs.com/iyoume2008/p/10156859.html