You can call this operation to query the launcher log of a node instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeFlowNodeInstanceLauncherLog

The operation that you want to perform. Set the value to DescribeFlowNodeInstanceLauncherLog.

NodeInstanceId String Yes FNI-0D2534B3AB67****

The ID of the node instance.

ProjectId String Yes FP-BECB9D35CB12****

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region to which your project belongs.

EndTime Long No 1540796248000

The end time of the queried log.

Length Integer No 100

This parameter is unavailable.

Lines Integer No 100

The number of log entries to return at a time. The maximum value is 1000.

Offset Integer No 200

This parameter is unavailable.

Reverse Boolean No true

Specifies whether log entries are sorted in reverse chronological order.

Start Integer No 200

The start offset of the log.

StartTime Long No 1540796236000

The start time of the queried log.

Response parameters

Parameter Type Example Description
LogEnd Boolean false

Indicates whether the log stream ended.

LogEntrys

A list of log entries.

LogEntry

A log entry in the list.

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=DescribeFlowNodeInstanceLauncherLog
&NodeInstanceId=FNI-0D2534B3AB67****
&ProjectId=FP-BECB9D35CB12****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DescribeFlowNodeInstanceLauncherLogResponse>
	  <data>
		    <RequestId>F4BBBCEF-20B9-4AD2-99EF-E1BA8D72B2C3</RequestId>
		    <LogEnd>false</LogEnd>
		    <LogEntrys>
			      <LogEntry>
				        <Content>Fri Nov 16 09:56:00 CST 2018 [LocalJobLauncherAM] INFO Starting emr flow launcher am ... </Content>
			      </LogEntry>
			      <LogEntry>
				        <Content>== System Properties ============</Content>
			      </LogEntry>
			      <LogEntry>
				        <Content>  java.runtime.name=OpenJDK Runtime Environment</Content>
			      </LogEntry>
		    </LogEntrys>
	  </data>
	  <requestId>F4BBBCEF-20B9-4AD2-99EF-E1BA8D72B2C3</requestId>
</DescribeFlowNodeInstanceLauncherLogResponse>

JSON format

{
	"requestId":"F4BBBCEF-20B9-4AD2-99EF-E1BA8D72B2C3",
	"data":{
		"LogEntrys":{
			"LogEntry":[
				{
					"Content":"Fri Nov 16 09:56:00 CST 2018 [LocalJobLauncherAM] INFO Starting emr flow launcher am ..."
				},
				{
					"Content":"== System Properties ============"
				},
				{
					"Content":"  java.runtime.name=OpenJDK Runtime Environment"
				}
			]
		},
		"RequestId":"F4BBBCEF-20B9-4AD2-99EF-E1BA8D72B2C3",
		"LogEnd":false
	}
}

Error codes

For a list of error codes, visit the API Error Center.