
shell脚本
me凡
这个作者很懒,什么都没留下…
展开
-
Apache Druid删除深度存储(Deep Storage)中的数据
参考https://blog.youkuaiyun.com/Alongpo/article/details/89604655Druid安装及demo测试请参考https://blog.youkuaiyun.com/qq_34864753/article/details/100080664假如我们只想保留Druid中某张表7天的数据,为了减少磁盘开销,删除前7天的数据1. 设置表的保留规则参考...原创 2019-11-01 17:17:00 · 1965 阅读 · 0 评论 -
linu crontab定时任务大坑:ps aux | grep *** 与文件名冲突
我的 .sh文件名为hiveserver2_monitor.sh脚本内容source /etc/profilenow_time=$(date +"%Y-%m-%d %H:%M:%S")function checkProcess(){ hive_process=$(ps aux | grep hiveserver2 | grep -v grep |grep -v 'hi...原创 2019-06-17 20:33:22 · 1318 阅读 · 0 评论