GetDIJobLog

Updated at:

Retrieves the logs of a data integration task.

Operation description

DataWorks Basic Edition or higher is required.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

No

The ID of the data integration synchronization task for which you want to query runtime logs. This parameter is required. You can obtain the ID from the PagingInfo.DIJobs[].Id field in the response of the ListDIJobs operation.

10000

InstanceId

integer

No

The ID of the instance.

6153616438

FailoverId

integer

No

The ID of the failover.

10

DIJobId deprecated

integer

No

[Deprecated] Use the Id field instead.

10000

PageNumber

integer

No

The page number for paging. The value must be a positive integer greater than or equal to 1.

1

NodeType

string

No

The node type. This parameter is applicable only to tasks in Resource Group 2.0. Valid values:

  • MASTER: Retrieves JobManager logs.

  • WORKER: Retrieves TaskManager logs.

MASTER

Response elements

Element

Type

Description

Example

object

The returned log content.

Log

string

The task logs.

>>>>>>>> stdout:n++++++++++++++++++executing sql: create database if not exists jindo_test location 'oss://pangbei-hdfs/tmp/hive' n++n

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

1AFAE64E-D1BE-432B-A9****

Examples

Success response

JSON format

{
  "Log": ">>>>>>>> stdout:n++++++++++++++++++executing sql: create database if not exists jindo_test location 'oss://pangbei-hdfs/tmp/hive' n++n",
  "RequestId": "1AFAE64E-D1BE-432B-A9****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.