THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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 |
Code Block |
---|
TBD |
Response Example
Curl request example:
Code Block |
---|
curl http://10.10.100.19:8192/api/config | python -m json.tool |
Request header:
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 |
---|
{
|
Code Block |
{ "mesosMaster": "10.10.30.131:5050", "checkpoint": false, "frameworkFailoverTimeout": 43200000.0, "frameworkName": "MyriadAlpha", "frameworkRole": "", "profilesframeworkSuperUser": { "smallpresent": {true }, "frameworkUser": { "cpupresent": "1",true }, "memmesosAuthenticationPrincipal": "1100", "mesosAuthenticationSecretFilename": "", }, "mesosMaster": "zk://10.10.100.19:2181/mesos", "mediummyriadExecutorConfiguration": { "cpujvmMaxMemoryMB": "2",{ "mempresent": "2048"true }, "largenodeManagerUri": { "cpupresent": "4", false }, "mempath": "4096" }file:///usr/local/libexec/mesos/myriad-executor-runnable-0.0.1.jar" }, "rebalancer": false, "nativeLibrary": "/usr/local/lib/libmesos.so", "zkServersnmInstances": "10.10.30.131:5181", { "zkTimeoutmedium": 20000,1 "restApiPort": 8192,}, "yarnEnvironmentnodeManagerConfiguration": { "YARN_HOMEcgroups": "/opt/mapr/hadoop/hadoop-2.5.1/",{ "YARN_NODEMANAGER_OPTS": "-Dyarn.nodemanager.resources.io-spindles=4.0 -Dyarn.resourcemanager.hostname=10.10.30.132" "present": true }, "mesosAuthenticationPrincipalcpus": "", { "mesosAuthenticationSecretFilenamepresent": "",true "nodeManagerConfiguration": { }, "jvmMaxMemoryMB": { "present": true }, "userjvmOpts": { "present": truefalse } }, "profiles": { "cpuslarge": { "present"cpu": "10", "mem": true"12288" }, "jvmOptsmedium": { "cpu": "present"4", "mem": false"4096" }, "cgroupssmall": { "presentcpu": true "2", } "mem": "2048" }, "myriadExecutorConfigurationzero": { "jvmMaxMemoryMBcpu": {"0", "presentmem": true"0" } }, "rebalancer": false, "path": "file:///root/myriad-executor-runnable-0.0.1.jar" } } "restApiPort": 8192, "yarnEnvironment": { "YARN_HOME": "/root/hadoop-2.7.0" }, "zkServers": "10.10.100.19:2181", "zkTimeout": 20000 } |