ODPS-0110061

本文为您介绍错误码ODPS-0110061:Failed to run ddltask的报错场景,并提供对应的解决方案。

错误1:Schema evolution DDLs is not enabled in current project:xxxx

错误信息

FAILED: Catalog Service Failed, ErrorCode: 152, Error Message: ODPS-0110061: Failed to run ddltask-Schema evolution DDLs is not enabled in current project:xxxx

错误码描述

当前项目默认不允许表结构变更(Schema Evolution),如新增STRUCT类型的子列、删除列、修改列顺序和更改列数据类型。

解决方案

若您需要开通表结构变更(Schema Evolution),请运行setproject odps.schema.evolution.enable=true;命令,需要等待10分钟后才会生效,更多表结构变更点击参考分区和列操作

错误2:ODPS-0110061: Failed to run ddltask - Modify DDL meta encounter exception

错误信息

ODPS-0110061: Failed to run ddltask - Modify DDL meta encounter exception : ODPS-0429311:Transaction aborted - MaxC Transaction aborted. Can't update ObjectId(objectType:PARTITION, dbName:mc_gjpt, tableName:xxxx, tableId:xxx, partitionId:xxxx, partitionName:pt=20221125, tenantId:, catalogName:xxx, catalogId:xxx, dbId:, projectName:xxx). BeginTs is less than lastCommitTs.objectId:ObjectId(objectType:PARTITION, dbName:xxx, tableName:xxxx, tableId:xxx, partitionId:xxx, partitionName:pt=20221125, tenantId:, catalogName:xxxx, catalogId:xxx, dbId:, projectName:xxxx), txnId:xxxxx, lastCommitTs:1709410212584448, lastMaxBeginTs:1709410182400000, isolation:NONSTRICT_SNAPSHOT_ISOLATION, op:UPDATE, isConstraintNotAllowInsertIntoReorder:false

错误码描述

用户在短时间内对Meta信息进行变更,导致Meta冲突报错。

解决方案

避免短时间内并发去更新Meta信息,建议更新Meta信息的操作间隔至少为一分钟。