数据湖探索 DLI-查询批处理作业日志(废弃):URI

时间:2023-11-27 11:52:36

URI

  • URI格式:

    GET /v2.0/{project_id}/batches/{batch_id}/log

  • 参数说明
    表1 URI参数

    参数名称

    是否必选

    参数类型

    说明

    project_id

    String

    项目编号,用于资源隔离。获取方式请参考获取项目ID

    batch_id

    String

    批处理作业的ID。

    表2 请求参数说明

    参数名称

    是否必选

    参数类型

    说明

    from

    Integer

    起始日志的行号,默认显示最后100行日志。如果日志不足100行,从0行开始显示。

    size

    Integer

    查询日志的数量。

    type

    String

    “type”“driver”时,输出Spark Driver日志。

    index

    Integer

    当提交的作业进行重试时,会有多个driver日志。“index”用于指定driver日志的索引号,默认为“0”。需要与“type”参数一起使用。如果只指定“index”,则“type”默认为“driver”

support.huaweicloud.com/api-dli/dli_02_0128.html