You can call DescribeFlowNodeInstanceContainerLog operation to query the log of a container that runs on a node instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeFlowNodeInstanceContainerLog |
The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to DescribeFlowNodeInstanceContainerLog. |
AppId | String | Yes | application_1542620905989_**** |
The application ID of the job. |
ContainerId | String | Yes | container_1542620905989_0010_01_00**** |
The ID of the container. |
LogName | String | Yes | stderr |
Log name:
|
NodeInstanceId | String | Yes | FNI-0D2534B3AB67**** |
The ID of the ECS instance that is added to the ACK cluster. You can call ListFlowNodeInstance View the ID of the node instance. |
ProjectId | String | Yes | FP-BECB9D35CB12**** |
The ID of the project. You can call ListFlowProject View the ID of the project. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions. |
Offset | Integer | No | 0 |
The offset of the SQL result. |
Length | Integer | No | 200 |
The number of the log entries to return. The maximum number of log entries to return at a time is 1,000. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
LogEnd | Boolean | true |
Indicates whether the log is ended. Valid values:
|
LogEntrys | Array of LogEntry |
An array of log entries. |
|
LogEntry | |||
Content | String | 2018-11-19 17:55:11,792 INFO [RMCommunicator Allocator] org.apache.hadoop.yarn.util.RackResolver: Resolved emr-worker-1.cluster-500160492 to /default-rack |
The log entry. |
RequestId | String | 4E216C44-F828-4D59-B398-253DCF86F23C |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeFlowNodeInstanceContainerLog
&AppId=application_1542620905989_****
&ContainerId=container_1542620905989_0010_01_00****
&LogName=stderr
&NodeInstanceId=FNI-0D2534B3AB67****
&ProjectId=FP-BECB9D35CB12****
&RegionId=cn-hangzhou
&<common request parameters>
Sample success responses
XML
format
<DescribeFlowNodeInstanceContainerLogResponse>
<data>
<RequestId>4E216C44-F828-4D59-B398-253DCF86F23C</RequestId>
<LogEnd>false</LogEnd>
<LogEntrys>
<LogEntry>
<Content>2018-11-19 17:55:11,792 INFO [RMCommunicator Allocator] org.apache.hadoop.yarn.util.RackResolver: Resolved emr-worker-1.cluster-500160492 to /default-rack</Content>
</LogEntry>
<LogEntry>
<Content>2018-11-19 17:55:11,793 INFO [RMCommunicator Allocator] org.apache.hadoop.yarn.util.RackResolver: Resolved emr-worker-2.cluster-500160492 to /default-rack</Content>
</LogEntry>
</LogEntrys>
</data>
<requestId>4E216C44-F828-4D59-B398-253DCF86F23C</requestId>
</DescribeFlowNodeInstanceContainerLogResponse>
JSON
Syntax
{
"data": {
"RequestId": "4E216C44-F828-4D59-B398-253DCF86F23C",
"LogEnd": false,
"LogEntrys": {
"LogEntry": [
{
"Content": "2018-11-19 17:55:11,792 INFO [RMCommunicator Allocator] org.apache.hadoop.yarn.util.RackResolver: Resolved emr-worker-1.cluster-500160492 to /default-rack"
},
{
"Content": "2018-11-19 17:55:11,793 INFO [RMCommunicator Allocator] org.apache.hadoop.yarn.util.RackResolver: Resolved emr-worker-2.cluster-500160492 to /default-rack"
}
]
}
},
"requestId": "4E216C44-F828-4D59-B398-253DCF86F23C"
}