Skip to content

Instantly share code, notes, and snippets.

@asears
Created June 21, 2016 00:55
Show Gist options
  • Save asears/4de4059bded3fb7987221a5590fec1e4 to your computer and use it in GitHub Desktop.
Save asears/4de4059bded3fb7987221a5590fec1e4 to your computer and use it in GitHub Desktop.
Ambari bulk service payload file
[
{
"RequestSchedule":{
"batch":[
{
"requests":[
{
"order_id":1,
"type":"POST",
"uri":"/api/v1/clusters/hdp/requests",
"RequestBodyInfo":{
"RequestInfo":{
"context":"HDFS Service Check (batch 1 of 3)",
"command":"HDFS_SERVICE_CHECK"
},
"Requests/resource_filters":[
{
"service_name":"HDFS"
}
]
}
},
{
"order_id":2,
"type":"POST",
"uri":"/api/v1/clusters/hdp/requests",
"RequestBodyInfo":{
"RequestInfo":{
"context":"YARN Service Check (batch 2 of 3)",
"command":"YARN_SERVICE_CHECK"
},
"Requests/resource_filters":[
{
"service_name":"YARN"
}
]
}
},
{
"order_id":3,
"type":"POST",
"uri":"/api/v1/clusters/hdp/requests",
"RequestBodyInfo":{
"RequestInfo":{
"context":"MapReduce Service Check (batch 3 of 3)",
"command":"MAPREDUCE2_SERVICE_CHECK"
},
"Requests/resource_filters":[
{
"service_name":"MAPREDUCE2"
}
]
}
}
]
},
{
"batch_settings":{
"batch_separation_in_seconds":1,
"task_failure_tolerance":1
}
}
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment