Using the YARN REST APIs to Manage Applications
https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.1/data-operating-system/content/using_the_yarn_rest_apis_to_manage_applications.html
Get an Application ID
curl -v -X POST 'http://localhost:8088/ws/v1/cluster/apps/new-application'
{
"application-id": "application_1409421698529_0012",
"maximum-resource-capability":{"memory":"8192","vCores":"32"}
}
Kill an Application
curl -v -X PUT -d '{"state": "KILLED"}''http://localhost:8088/ws/v1/cluster/apps/application_1409421698529_0012'