集群所有进程查看脚本1xcall.sh
- #! /bin/bash
-
- for i in hadoop102 hadoop103 hadoop104
- do
- echo --------- $i ----------
- ssh $i "$*"
- done
集群所有进程查看脚本2xcall.sh
- #! /bin/bash
-
- for i in hadoop102 hadoop103 hadoop104
- do
- echo --------- $i ----------
- ssh $i "jps $@ | grep -v Jps"
- done