YARN-6135. Node manager REST API documentation is not up to date (Contributed by Miklos Szegedi via Daniel Templeton)
This commit is contained in:
parent
307ec58ffb
commit
a87e3850b9
|
@ -64,7 +64,10 @@ Both of the following URI's give you the cluster information.
|
||||||
| totalPmemAllocatedContainersMB | long | The amount of physical memory allocated for use by containers in MB |
|
| totalPmemAllocatedContainersMB | long | The amount of physical memory allocated for use by containers in MB |
|
||||||
| totalVmemAllocatedContainersMB | long | The amount of virtual memory allocated for use by containers in MB |
|
| totalVmemAllocatedContainersMB | long | The amount of virtual memory allocated for use by containers in MB |
|
||||||
| totalVCoresAllocatedContainers | long | The number of virtual cores allocated for use by containers |
|
| totalVCoresAllocatedContainers | long | The number of virtual cores allocated for use by containers |
|
||||||
|
| vmemCheckEnabled | boolean | Whether virtual memory checking is enabled for preemption |
|
||||||
|
| pmemCheckEnabled | boolean | Whether physical memory checking is enabled for preemption |
|
||||||
| lastNodeUpdateTime | long | The last timestamp at which the health report was received (in ms since epoch) |
|
| lastNodeUpdateTime | long | The last timestamp at which the health report was received (in ms since epoch) |
|
||||||
|
| nmStartupTime | long | The timestamp at which the node was started (in ms since epoch) |
|
||||||
| healthReport | string | The diagnostic health report of the node |
|
| healthReport | string | The diagnostic health report of the node |
|
||||||
| nodeHealthy | boolean | true/false indicator of if the node is healthy |
|
| nodeHealthy | boolean | true/false indicator of if the node is healthy |
|
||||||
| nodeManagerVersion | string | Version of the NodeManager |
|
| nodeManagerVersion | string | Version of the NodeManager |
|
||||||
|
@ -93,23 +96,27 @@ Response Body:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"nodeInfo" : {
|
"nodeInfo": {
|
||||||
"hadoopVersionBuiltOn" : "Mon Jan 9 14:58:42 UTC 2012",
|
"healthReport": "",
|
||||||
"nodeManagerBuildVersion" : "0.23.1-SNAPSHOT from 1228355 by user1 source checksum 20647f76c36430e888cc7204826a445c",
|
"totalVmemAllocatedContainersMB": 17203,
|
||||||
"lastNodeUpdateTime" : 1326222266126,
|
"totalPmemAllocatedContainersMB": 8192,
|
||||||
"totalVmemAllocatedContainersMB" : 17203,
|
"totalVCoresAllocatedContainers": 8,
|
||||||
"totalVCoresAllocatedContainers" : 8,
|
"vmemCheckEnabled": false,
|
||||||
"nodeHealthy" : true,
|
"pmemCheckEnabled": true,
|
||||||
"healthReport" : "",
|
"lastNodeUpdateTime": 1485814574224,
|
||||||
"totalPmemAllocatedContainersMB" : 8192,
|
"nodeHealthy": true,
|
||||||
"nodeManagerVersionBuiltOn" : "Mon Jan 9 15:01:59 UTC 2012",
|
"nodeManagerVersion": "3.0.0",
|
||||||
"nodeManagerVersion" : "0.23.1-SNAPSHOT",
|
"nodeManagerBuildVersion": "3.0.0",
|
||||||
"id" : "host.domain.com:8041",
|
"nodeManagerVersionBuiltOn": "2017-01-30T17:42Z",
|
||||||
"hadoopBuildVersion" : "0.23.1-SNAPSHOT from 1228292 by user1 source checksum 3eba233f2248a089e9b28841a784dd00",
|
"hadoopVersion": "3.0.0",
|
||||||
"nodeHostName" : "host.domain.com",
|
"hadoopBuildVersion": "3.0.0",
|
||||||
"hadoopVersion" : "0.23.1-SNAPSHOT"
|
"hadoopVersionBuiltOn": "2017-01-30T17:39Z",
|
||||||
}
|
"id": "host.domain.com:46077",
|
||||||
|
"nodeHostName": "host.domain.com",
|
||||||
|
"nmStartupTime": 1485800887841
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**XML response**
|
**XML response**
|
||||||
|
@ -131,20 +138,23 @@ Response Body:
|
||||||
```xml
|
```xml
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<nodeInfo>
|
<nodeInfo>
|
||||||
<healthReport/>
|
<healthReport></healthReport>
|
||||||
<totalVmemAllocatedContainersMB>17203</totalVmemAllocatedContainersMB>
|
<totalVmemAllocatedContainersMB>17203</totalVmemAllocatedContainersMB>
|
||||||
<totalPmemAllocatedContainersMB>8192</totalPmemAllocatedContainersMB>
|
<totalPmemAllocatedContainersMB>8192</totalPmemAllocatedContainersMB>
|
||||||
<totalVCoresAllocatedContainers>8</totalVCoresAllocatedContainers>
|
<totalVCoresAllocatedContainers>8</totalVCoresAllocatedContainers>
|
||||||
<lastNodeUpdateTime>1326222386134</lastNodeUpdateTime>
|
<vmemCheckEnabled>false</vmemCheckEnabled>
|
||||||
<nodeHealthy>true</nodeHealthy>
|
<pmemCheckEnabled>true</pmemCheckEnabled>
|
||||||
<nodeManagerVersion>0.23.1-SNAPSHOT</nodeManagerVersion>
|
<lastNodeUpdateTime>1485815774203</lastNodeUpdateTime>
|
||||||
<nodeManagerBuildVersion>0.23.1-SNAPSHOT from 1228355 by user1 source checksum 20647f76c36430e888cc7204826a445c</nodeManagerBuildVersion>
|
<nodeHealthy>true</nodeHealthy>
|
||||||
<nodeManagerVersionBuiltOn>Mon Jan 9 15:01:59 UTC 2012</nodeManagerVersionBuiltOn>
|
<nodeManagerVersion>3.0.0</nodeManagerVersion>
|
||||||
<hadoopVersion>0.23.1-SNAPSHOT</hadoopVersion>
|
<nodeManagerBuildVersion>3.0.0</nodeManagerBuildVersion>
|
||||||
<hadoopBuildVersion>0.23.1-SNAPSHOT from 1228292 by user1 source checksum 3eba233f2248a089e9b28841a784dd00</hadoopBuildVersion>
|
<nodeManagerVersionBuiltOn>2017-01-30T17:42Z</nodeManagerVersionBuiltOn>
|
||||||
<hadoopVersionBuiltOn>Mon Jan 9 14:58:42 UTC 2012</hadoopVersionBuiltOn>
|
<hadoopVersion>3.0.0</hadoopVersion>
|
||||||
<id>host.domain.com:8041</id>
|
<hadoopBuildVersion>3.0.0</hadoopBuildVersion>
|
||||||
<nodeHostName>host.domain.com</nodeHostName>
|
<hadoopVersionBuiltOn>2017-01-30T17:39Z</hadoopVersionBuiltOn>
|
||||||
|
<id>host.domain.com:46077</id>
|
||||||
|
<nodeHostName>host.domain.com</nodeHostName>
|
||||||
|
<nmStartupTime>1485800887841</nmStartupTime>
|
||||||
</nodeInfo>
|
</nodeInfo>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -391,7 +401,13 @@ Response Body:
|
||||||
"containerLogsLink" : "http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000001/user1",
|
"containerLogsLink" : "http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000001/user1",
|
||||||
"user" : "user1",
|
"user" : "user1",
|
||||||
"id" : "container_1326121700862_0006_01_000001",
|
"id" : "container_1326121700862_0006_01_000001",
|
||||||
"exitCode" : -1000
|
"exitCode" : -1000,
|
||||||
|
"executionType": "GUARANTEED",
|
||||||
|
"containerLogFiles": [
|
||||||
|
"stdout",
|
||||||
|
"stderr",
|
||||||
|
"syslog"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nodeId" : "host.domain.com:8041",
|
"nodeId" : "host.domain.com:8041",
|
||||||
|
@ -402,7 +418,13 @@ Response Body:
|
||||||
"containerLogsLink" : "http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000003/user1",
|
"containerLogsLink" : "http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000003/user1",
|
||||||
"user" : "user1",
|
"user" : "user1",
|
||||||
"id" : "container_1326121700862_0006_01_000003",
|
"id" : "container_1326121700862_0006_01_000003",
|
||||||
"exitCode" : -1000
|
"exitCode" : -1000,
|
||||||
|
"executionType": "GUARANTEED",
|
||||||
|
"containerLogFiles": [
|
||||||
|
"stdout",
|
||||||
|
"stderr",
|
||||||
|
"syslog"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -438,6 +460,10 @@ Response Body:
|
||||||
<totalVCoresNeeded>1</totalVCoresNeeded>
|
<totalVCoresNeeded>1</totalVCoresNeeded>
|
||||||
<containerLogsLink>http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000001/user1</containerLogsLink>
|
<containerLogsLink>http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000001/user1</containerLogsLink>
|
||||||
<nodeId>host.domain.com:8041</nodeId>
|
<nodeId>host.domain.com:8041</nodeId>
|
||||||
|
<executionType>GUARANTEED</executionType>
|
||||||
|
<containerLogFiles>stdout</containerLogFiles>
|
||||||
|
<containerLogFiles>stderr</containerLogFiles>
|
||||||
|
<containerLogFiles>syslog</containerLogFiles>
|
||||||
</container>
|
</container>
|
||||||
<container>
|
<container>
|
||||||
<id>container_1326121700862_0006_01_000003</id>
|
<id>container_1326121700862_0006_01_000003</id>
|
||||||
|
@ -449,6 +475,10 @@ Response Body:
|
||||||
<totalVCoresNeeded>2</totalVCoresNeeded>
|
<totalVCoresNeeded>2</totalVCoresNeeded>
|
||||||
<containerLogsLink>http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000003/user1</containerLogsLink>
|
<containerLogsLink>http://host.domain.com:8042/node/containerlogs/container_1326121700862_0006_01_000003/user1</containerLogsLink>
|
||||||
<nodeId>host.domain.com:8041</nodeId>
|
<nodeId>host.domain.com:8041</nodeId>
|
||||||
|
<executionType>GUARANTEED</executionType>
|
||||||
|
<containerLogFiles>stdout</containerLogFiles>
|
||||||
|
<containerLogFiles>stderr</containerLogFiles>
|
||||||
|
<containerLogFiles>syslog</containerLogFiles>
|
||||||
</container>
|
</container>
|
||||||
</containers>
|
</containers>
|
||||||
```
|
```
|
||||||
|
@ -485,6 +515,8 @@ Use the following URI to obtain a Container Object, from a container identified
|
||||||
| diagnostics | string | A diagnostic message for failed containers |
|
| diagnostics | string | A diagnostic message for failed containers |
|
||||||
| totalMemoryNeededMB | long | Total amout of memory needed by the container (in MB) |
|
| totalMemoryNeededMB | long | Total amout of memory needed by the container (in MB) |
|
||||||
| totalVCoresNeeded | long | Total number of virtual cores needed by the container |
|
| totalVCoresNeeded | long | Total number of virtual cores needed by the container |
|
||||||
|
| executionType | string | Container type of GUARANTEED or OPPORTUNISTIC |
|
||||||
|
| containerLogFiles | array of strings | Container log file names |
|
||||||
|
|
||||||
### Response Examples
|
### Response Examples
|
||||||
|
|
||||||
|
@ -514,7 +546,13 @@ Response Body:
|
||||||
"containerLogsLink" : "http://host.domain.com:8042/node/containerlogs/container_1326121700862_0007_01_000001/user1",
|
"containerLogsLink" : "http://host.domain.com:8042/node/containerlogs/container_1326121700862_0007_01_000001/user1",
|
||||||
"user" : "user1",
|
"user" : "user1",
|
||||||
"id" : "container_1326121700862_0007_01_000001",
|
"id" : "container_1326121700862_0007_01_000001",
|
||||||
"exitCode" : -1000
|
"exitCode" : -1000,
|
||||||
|
"executionType": "GUARANTEED",
|
||||||
|
"containerLogFiles": [
|
||||||
|
"stdout",
|
||||||
|
"stderr",
|
||||||
|
"syslog"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -547,5 +585,9 @@ Response Body:
|
||||||
<totalVCoresNeeded>1</totalVCoresNeeded>
|
<totalVCoresNeeded>1</totalVCoresNeeded>
|
||||||
<containerLogsLink>http://host.domain.com:8042/node/containerlogs/container_1326121700862_0007_01_000001/user1</containerLogsLink>
|
<containerLogsLink>http://host.domain.com:8042/node/containerlogs/container_1326121700862_0007_01_000001/user1</containerLogsLink>
|
||||||
<nodeId>host.domain.com:8041</nodeId>
|
<nodeId>host.domain.com:8041</nodeId>
|
||||||
|
<executionType>GUARANTEED</executionType>
|
||||||
|
<containerLogFiles>stdout</containerLogFiles>
|
||||||
|
<containerLogFiles>stderr</containerLogFiles>
|
||||||
|
<containerLogFiles>syslog</containerLogFiles>
|
||||||
</container>
|
</container>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue