NN 监控RPC

#!/bin/bash

while true

do

    echo -e "Time `date '+%y/%m/%d--%T'`"

    curl -s http://10.192.3.11:50070/jmx?qry=Hadoop:service=NameNode,name=RpcActivityForPort8020 |grep  -w -E "RpcProcessingTimeAvgTime|RpcQueueTimeAvgTime"  |sed  's/^[[:space:]]*\t*//g' |sed 'N;s/\n//'

    sleep 5

done

你可能感兴趣的:(NN 监控RPC)