The State REST API uses the GET /api/config
HTTP method and URI to retrieve configuration information.
HTTP Method and URI
GET /api/config
Request Example
Curl request example:
curl http://10.10.100.19:8192/api/config
Response Example
{
"checkpoint": false,
"frameworkFailoverTimeout": 43200000.0,
"frameworkName": "MyriadAlpha",
"frameworkRole": "",
"frameworkSuperUser": {
"present": true
},
"frameworkUser": {
"present": true
},
"mesosAuthenticationPrincipal": "",
"mesosAuthenticationSecretFilename": "",
"mesosMaster": "zk://10.10.100.19:2181/mesos",
"myriadExecutorConfiguration": {
"jvmMaxMemoryMB": {
"present": true
},
"nodeManagerUri": {
"present": false
},
"path": "file:///usr/local/libexec/mesos/myriad-executor-runnable-0.0.1.jar"
},
"nativeLibrary": "/usr/local/lib/libmesos.so",
"nmInstances": {
"medium": 1
},
"nodeManagerConfiguration": {
"cgroups": {
"present": true
},
"cpus": {
"present": true
},
"jvmMaxMemoryMB": {
"present": true
},
"jvmOpts": {
"present": false
}
},
"profiles": {
"large": {
"cpu": "4",
"mem": "4096"
},
"medium": {
"cpu": "2",
"mem": "2048"
},
"small": {
"cpu": "1",
"mem": "1100"
},
"zero": {
"cpu": "0",
"mem": "0"
}
},
"rebalancer": false,
"restApiPort": 8192,
"yarnEnvironment": {
"YARN_HOME": "/root/hadoop-2.7.1"
},
"zkServers": "10.10.100.19:2181",
"zkTimeout": 20000
}