Bootstrap

msck批量

set hive.msck.repair.batch.size=10000;
set hive.msck.path.validation=ignore;
$ cat test.sh
#!/bin/bash

file_path=$1

while IFS= read -r old;
do
beeline -u “jdbc:hive2://XXX:2181/default;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2_zk” -n hive -p H222222 -e “set hive.msck.path.validation=ignore; $old”
done < $file_path

;