shell脚本 快照还原Hbase数据库

mac2022-06-30  121

#!/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批量命令执行脚本的方法
最新回复(0)