12-05-2017 07:37 AM - last edited on 12-05-2017 11:17 AM by cjervis
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)'`
06-20-2018 11:43 PM
You've probably figured it out, but for other readers: just remove the single quotes ' ' around $STARTDATE in the url.