node topo

Lists cluster topology information.

Lists internal nodes only (switches/racks/etc) and not leaf nodes (server nodes).

Syntax

CLI
maprcli node topo
    [ -cluster <cluster> ]
    [ -path <path> ]
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/node/topo?<parameters> 

Parameters

Parameter Description
cluster The cluster on which to run the command.
path The path on which to list node topology.

Output

Node topology information.

Sample output

{
    "timestamp":1433545849048,
    "timeofday":"2015-06-05 11:10:49.048 GMT+0000",
    "status":"OK",
    "total":4,
    "data":[
        {
            "path":"/"
        },
        {
            "path":"/data"
        },
        {
            "path":"/data/default-rack"
        },
        {
            "path":"/default-rack"
        }
    ]
}

Output Fields

Field

Description

path

The physical topology path to the node.

Examples

CLI
# maprcli node topo
path                
/                   
/data               
/data/default-rack  
/default-rack   
REST
# curl -k -X GET 'https://abc.sj.us:8443/rest/node/topo' --user mapr:mapr
{"timestamp":1529382835319,"timeofday":"2018-06-18 09:33:55.319 GMT-0700 PM","status":"OK","total":4,"data":[{"path":"/"},{"path":"/data"},{"path":"/data/default-rack"},{"path":"/default-rack"}]}