Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
GET /api/config

Syntax

Code Block
<localhost>:<port>/api/config

Request Example

Curl request example:

Code Block
curl http://10.10.100.19:8192/api/config | python -m json.tool


URL request example:

Code Block
http://10.10.100.19:8192/api/config


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": "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

...



}