You can call this operation to view the logs of a node instance launcher.

Request parameters

Parameter Type Required Example Description
NodeInstanceId String Yes FNI-0D2534B3AB675B63 The ID of the node instance.
ProjectId String Yes FP-BECB9D35CB121F32 The ID of the project.
RegionId String Yes cn-hangzhou The ID of the region.
EndTime Long No 1540796248000 The start time of the query.
Length Integer No 100 This is a legacy parameter.
Lines Integer No 100 The length of the log. Length constraints: Maximum length of 1,000.
Offset Integer No 200 This is a legacy parameter.
Reverse Boolean No true Indicates whether the logs are shown in reverse order.
Start Integer No 200 The initial offset.
StartTime Long No 1540796236000 The start time of the query.

Response parameters

Name Type Example Description
RequestId String 4E216C44-F828-4D59-B398-253DCF86F23C The ID of the request.
LogEnd Boolean false Indicates whether all logs are shown.
LogEntrys The entry of the log.
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 content of the log.

Examples

  • Sample requests
    
    /? Action=DescribeFlowNodeInstanceLauncherLog
    &NodeInstanceId=FNI-0D2534B3AB675B63
    &ProjectId=FP-BECB9D35CB121F32
    &RegionId=cn-hangzhou 
    &EndTime=1540796248000
    &Lines=100
    &Reverse=true
    &Start=200
    &StartTime=1540796236000
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"code":"200",
    	"data":{
    		"LogEnd":false,
    		"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"
    	},
    	"requestId":"F4BBBCEF-20B9-4AD2-99EF-E1BA8D72B2C3",
    	"successResponse":true
    }
  • Error response examples
    JSON format
    {
    	"code":"FLOW_API_FAILED",
    	"message":"flow instance does not exist [FNI-2DC5BBC3D47FE45]",
    	"requestId":"2D695EEA-DB91-498B-B974-464BCED3293B",
    	"successResponse":false
    }

Error codes

View error codes.