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