#!/bin/bashfor i in $(cat ./hbaseTable);doecho "disable '$i'" | hbase shellecho "restore_snapshot '$i-Snapshot-1220'" | hbase shellecho "enable '$i'" | hbase shelldone
转载于:https://www.cnblogs.com/iyoume2008/p/10156859.html
相关资源:hbase-shell批量命令执行脚本的方法