#!/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
#!/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