标签:tmp .sh log comm imp 快速 impala cluster services
#!/bin/bash
#此脚本用于定时重启impala服务
#每2个小时的10分重启一次
#10 */2 * * * bash +x /root/restartImpala.sh
#全通生产
#curl -X POST -u admin:Mvtech@123! "http://192.168.0.20:7180/api/v19/clusters/cluster/services/impala/commands/restart"
#公司环境
curl -X POST -u admin:admin "http://192.168.2.151:7180/api/v16/clusters/cluster/services/impala/commands/restart"
echo "执行重启的时间为:`date +%Y%m%d-%H:%M:%S`" >> /tmp/impala_restart.log
标签:tmp .sh log comm imp 快速 impala cluster services
原文地址:https://www.cnblogs.com/sdhzdtwhm/p/10253861.html