查看所有集群节点运行情况脚本 Jpsall


#!/bin/bash
for i in `cat /opt/module/hadoop-2.7.2/etc/hadoop/slaves`
do
        echo "==========$i=========="
        ssh $i '/opt/module/jdk1.8.0_144/bin/jps'
done

把路径替换为当下真实环境的路径

你可能感兴趣的:(脚本,Jpsall)