Expert Contributor
Posts: 290
Registered: ‎01-25-2017

getting completed jobs using cloudera manager API

[ Edited ]

Hi Guys,


I trying to get all the finished applications ( which is not running, it may killed, success etc ...), and using the cloudera manager API, but with no success, can anyone help what i'm missing in the below command, i'm collecting the metrics each 5 minutes


STARTDATE=`date -d " -5 minute" "+%FT%T"`

result=`curl -u 'admin' : 'admin' 'http://cloudera_manager_host:7180/api/v11/clusters/cluster/services/yarn/yarnApplications?from='$STARTDATE'&limit=1000&filters(state!=RUNNING)'`