Created 07-13-2017 09:03 AM
What could be script to get top 3 yarn applications in RUNNING state from all different clusters ?
Created 07-13-2017 09:15 AM
You can use 'yarn top' command. 'yarn top' is a tool to help cluster administrators understand cluster usage better . It displays the details of applications and which apps are consuming resources.
Hope it helps.
Created 07-13-2017 09:32 AM
does it Give details from all clusters or particular cluster ?
Created 07-13-2017 09:51 AM
try this on yarn cluster, it will fetch you all running application on cluster
yarn application -list -appStates RUNNING
Created 07-13-2017 10:01 AM
does It fetch results from different clusters as well ?
Created 07-13-2017 10:28 AM
No this will fetch you RUNNING application from single cluster where you execute it, if you want to monitor remote cluster for RUNNING job you can use YARN RM rest API
curl --compressed -X GET http://<cluster1_RM_HOST>:8088/ws/v1/cluster/apps?state=RUNNING curl --compressed -X GET http://<cluster2_RM_HOST>:8088/ws/v1/cluster/apps?state=RUNNING
Created 07-13-2017 12:45 PM
how to filter some details like application type , startedTime etc. ?
Created 07-13-2017 10:04 AM
imp point here is that i want to fetch result from different clusters as well in one single machine