结合Ansible技术监控Storm集群 2014-11-20 01:13:46 标签:storm ansible 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明
结合Ansible技术监控Storm集群 2014-11-20 01:13:46
标签:storm ansible
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://sofar.blog.51cto.com/353572/1579897
1、我的hosts配置
# vim /etc/hosts
1 2 3 4 5 6 7 8 9 10 11 12 |
|
2、我的storm配置
# vim /usr/local/storm/conf/storm.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
3、nimbus节点部署
# vim /data/scripts/monitor_status_for_storm.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
# vim /data/scripts/supervisor_list.txt
1 2 3 4 5 6 |
|
# touch /var/run/check_storm.lock
# crontab -e
*/2 * * * * (flock --timeout=0 /var/run/check_storm.lock /data/scripts/monitor_status_for_storm.sh >/dev/null 2>&1)
4、supervisor节点部署
# vim /data/scripts/restart_storm_service.sh
1 2 3 4 5 6 |
|
本文出自 “人生理想在于坚持不懈” 博客,请务必保留此出处http://sofar.blog.51cto.com/353572/1579897