The State Configuration REST API uses the GET /api/config
HTTP method and URI to retrieve configuration information.
HTTP Method and URI
Code Block |
---|
GET /api/config |
Syntax
Code Block |
---|
<resource_manager_host>:<port>/api/config |
Request Example
URL request example:
Code Block |
---|
http://10.10.100.19:8192/api/config |
Curl request example:
Code Block |
---|
curl http://10.10.100.19:8192/api/config | python -m json.tool |
Request header:
Response Example
{
"checkpoint": false,
"frameworkFailoverTimeout": 43200000.0,
"frameworkName": "MyriadAlpha",
"frameworkRole": "",
"frameworkSuperUser": {
"present": true
},
"frameworkUser": {
"present": true
},
"mesosAuthenticationPrincipal": "",
"mesosAuthenticationSecretFilename": "",
...
Code Block |
---|
GET /api/config HTTP/1.1
Host: 10.10.100.19:8192
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8 |
Response Example
Code Block |
---|
{ "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": " |
...
10", "mem": " |
...
},
...
12288" }, "medium": |
...
{ "cpu": " |
...
4", "mem": " |
...
},
...
4096" }, "small": |
...
{ "cpu": " |
...
2", "mem": " |
...
},
...
2048" }, "zero": |
...
{ "cpu": "0", |
...
"mem": "0" |
...
}
},
...
} }, "rebalancer": false, |
...
"restApiPort": 8192, |
...
"yarnEnvironment": |
...
{ "YARN_HOME": "/root/hadoop-2.7. |
...
},
...
0" }, "zkServers": "10.10.100.19:2181", |
...
"zkTimeout": 20000 |
...
} |