
#!/bin/bash
start-web(){
for i in hadoop102;do ssh $i "cd /opt/module/azkaban/azkaban-web;bin/start-web.sh"done}
stop-web(){
for i in hadoop102;do ssh $i "cd /opt/module/azkaban/azkaban-web;bin/shutdown-web.sh"done}
start-exec(){
for i in hadoop102 hadoop103 hadoop104;do ssh $i "cd /opt/module/azkaban/azkaban-exec;bin/start-exec.sh"done}
activate-exec(){
for i in hadoop102 hadoop103 hadoop104;do ssh $i "curl -G "$i:12321/executor?action=activate" && echo"done}
stop-exec(){
for i in hadoop102 hadoop103 hadoop104;do ssh $i "/opt/module/azkaban/azkaban-exec/bin/shutdown-exec.sh"done}
case $1 in
start-exec) start-exec;;activate-exec) activate-exec;;stop-exec) stop-exec;;start-web) start-web;;stop-web) stop-web;;esac
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。