All Products
Search
Document Center

AnalyticDB:DescribeStreamingJob

Last Updated:Nov 05, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries a real-time data synchronization job.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
gpdb:DescribeStreamingJobdelete
*DBInstance
acs:gpdb::{#accountId}:dbinstance/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

Region ID.

Note You can call the DescribeRegions interface to view available region IDs.
cn-beijing
JobIdintegerYes

Job ID.

1
DBInstanceIdstringYes

Instance ID.

gp-bp10g78o9807yv9h3

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

Request ID.

B4CAF581-2AC7-41AD-8940-D56DF7AADF5B
JobIdstring

Job ID.

1
JobNamestring

Job name.

test-job
JobDescriptionstring

Job description.

test_job
DataSourceIdstring

Data source ID.

2
SrcColumnsarray

Source field list.

srcColumnsstring

Source data field key.

src_column_1
DestColumnsarray

Target data table mapping field list.

destColumnsstring

Mapping field key in the target table.

dest_column_1
MatchColumnsarray

Match columns, usually all primary key columns of the target table. If all column values in this configuration are the same, the two rows of data are considered duplicates.

matchColumnsstring

Match field key.

column_1
UpdateColumnsarray

Update columns, usually all non-primary key columns of the target table. When data duplication is determined through MatchColumns, updating the UpdateColumns column values will result in new data overwriting old data.

updateColumnsstring

Update field key.

column_1
Accountstring

Target database account.

test-account
Passwordstring

Target database password.

pwd123
DestDatabasestring

Target database name.

dest-db
DestSchemastring

Target namespace.

dest-schema
DestTablestring

Target table name.

dest-table
WriteModestring

Write mode.

INSERT/UPDATE/MERGE
Modestring

Configuration mode

  1. Basic mode requires specifying some configuration fields
  2. Professional mode supports submitting YAML files
basic/professional
JobConfigstring

Job configuration file.

DATABASE: adbpgss_test USER: adbpgss_test PASSWORD: adbpgssTest HOST: gp-xxx-master.gpdb.rds-aliyun-pre.rds.aliyuncs.com PORT: 5432 KAFKA: INPUT: SOURCE: BROKERS: broker1:9092,broker2:9092,broker3:9092 TOPIC: testtopic FALLBACK_OFFSET: earliest KEY: COLUMNS: - NAME: customer_id TYPE: int FORMAT: delimited DELIMITED_OPTION: DELIMITER: '|' VALUE: COLUMNS: - TYPE: integer NAME: l_orderkey - TYPE: integer NAME: l_partkey - TYPE: integer NAME: l_suppkey - TYPE: integer NAME: l_linenumber - TYPE: decimal NAME: l_quantity - TYPE: decimal NAME: l_extendedprice - TYPE: decimal NAME: l_discount - TYPE: decimal NAME: l_tax - TYPE: char NAME: l_returnflag - TYPE: char NAME: l_linestatus - TYPE: date NAME: l_shipdate - TYPE: date NAME: l_commitdate - TYPE: date NAME: l_receiptdate - TYPE: text NAME: l_shipinstruct - TYPE: text NAME: l_shipmode - TYPE: text NAME: l_comment FORMAT: delimited DELIMITED_OPTION: DELIMITER: '|' ERROR_LIMIT: 10 OUTPUT: SCHEMA: adbpgss_test TABLE: write_with_insert_plaintext MODE: MERGE MATCH_COLUMNS: - l_orderkey - l_partkey - l_suppkey UPDATE_COLUMNS: - l_linenumber - l_quantity - l_extendedprice - l_discount - l_tax - l_returnflag - l_linestatus - l_shipdate - l_commitdate - l_receiptdate - l_shipinstruct - l_shipmode - l_comment MAPPING: - EXPRESSION: l_orderkey NAME: l_orderkey - EXPRESSION: l_partkey NAME: l_partkey - EXPRESSION: l_suppkey NAME: l_suppkey - EXPRESSION: l_linenumber NAME: l_linenumber - EXPRESSION: l_quantity NAME: l_quantity - EXPRESSION: l_extendedprice NAME: l_extendedprice - EXPRESSION: l_discount NAME: l_discount - EXPRESSION: l_tax NAME: l_tax - EXPRESSION: l_returnflag NAME: l_returnflag - EXPRESSION: l_linestatus NAME: l_linestatus - EXPRESSION: l_shipdate NAME: l_shipdate - EXPRESSION: l_commitdate NAME: l_commitdate - EXPRESSION: l_receiptdate NAME: l_receiptdate - EXPRESSION: l_shipinstruct NAME: l_shipinstruct - EXPRESSION: l_shipmode NAME: l_shipmode - EXPRESSION: l_comment NAME: l_comment COMMIT: MAX_ROW: 1000 MINIMAL_INTERVAL: 1000 CONSISTENCY: ATLEAST POLL: BATCHSIZE: 1000 TIMEOUT: 1000 PROPERTIES: group.id: testgroup
Statusstring

Service status, with possible values:

  • Init: Initializing

  • Running: Running

  • Exception: Exception

  • Paused: Paused

Running
ErrorMessagestring

Service status information, such as the reason for an exception. It is empty in the normal Running state.

""
CreateTimestring

Creation time.

2019-09-08T16:00:00Z
ModifyTimestring

Last modified time.

2019-09-08T17:00:00Z
GroupNamestring

Kafka group name

test_group
Consistencystring

Delivery guarantee.

ATLEAST / EXACTLY
ErrorLimitCountinteger

When data in Kafka does not match the ADBPG target table, it can cause write failures. This value represents the number of error rows allowed; if exceeded, the task will fail.

5
FallbackOffsetstring

Fallback offset, which is the fallback position

  • The FallbackOffset parameter defines the behavior when the consumer has not requested a specific offset to consume or the requested offset exceeds the current record's offset information in the Kafka cluster. You can choose to start consuming from the earliest (newest) or latest (oldest) offset.
EARLIEST / LATEST
DataSourceNamestring

Data source name.

test_kafka

Examples

Sample success responses

JSONformat

{
  "RequestId": "B4CAF581-2AC7-41AD-8940-D56DF7AADF5B",
  "JobId": 1,
  "JobName": "test-job",
  "JobDescription": "test_job",
  "DataSourceId": 2,
  "SrcColumns": [
    "src_column_1"
  ],
  "DestColumns": [
    "dest_column_1"
  ],
  "MatchColumns": [
    "column_1"
  ],
  "UpdateColumns": [
    "column_1"
  ],
  "Account": "test-account",
  "Password": "pwd123",
  "DestDatabase": "dest-db",
  "DestSchema": "dest-schema",
  "DestTable": "dest-table",
  "WriteMode": "INSERT/UPDATE/MERGE",
  "Mode": "basic/professional",
  "JobConfig": "DATABASE: adbpgss_test\nUSER: adbpgss_test\nPASSWORD: adbpgssTest\nHOST: gp-xxx-master.gpdb.rds-aliyun-pre.rds.aliyuncs.com\nPORT: 5432\nKAFKA:\n  INPUT:\n    SOURCE:\n      BROKERS: broker1:9092,broker2:9092,broker3:9092\n      TOPIC: testtopic\n      FALLBACK_OFFSET: earliest\n    KEY:\n      COLUMNS:\n      - NAME: customer_id\n        TYPE: int\n      FORMAT: delimited\n      DELIMITED_OPTION:\n        DELIMITER: '|'\n    VALUE:\n      COLUMNS:\n      - TYPE: integer\n        NAME: l_orderkey\n      - TYPE: integer\n        NAME: l_partkey\n      - TYPE: integer\n        NAME: l_suppkey\n      - TYPE: integer\n        NAME: l_linenumber\n      - TYPE: decimal\n        NAME: l_quantity\n      - TYPE: decimal\n        NAME: l_extendedprice\n      - TYPE: decimal\n        NAME: l_discount\n      - TYPE: decimal\n        NAME: l_tax\n      - TYPE: char\n        NAME: l_returnflag\n      - TYPE: char\n        NAME: l_linestatus\n      - TYPE: date\n        NAME: l_shipdate\n      - TYPE: date\n        NAME: l_commitdate\n      - TYPE: date\n        NAME: l_receiptdate\n      - TYPE: text\n        NAME: l_shipinstruct\n      - TYPE: text\n        NAME: l_shipmode\n      - TYPE: text\n        NAME: l_comment\n      FORMAT: delimited\n      DELIMITED_OPTION:\n        DELIMITER: '|'\n    ERROR_LIMIT: 10\n  OUTPUT:\n    SCHEMA: adbpgss_test\n    TABLE: write_with_insert_plaintext\n    MODE: MERGE\n    MATCH_COLUMNS:\n    - l_orderkey\n    - l_partkey\n    - l_suppkey\n    UPDATE_COLUMNS:\n    - l_linenumber\n    - l_quantity\n    - l_extendedprice\n    - l_discount\n    - l_tax\n    - l_returnflag\n    - l_linestatus\n    - l_shipdate\n    - l_commitdate\n    - l_receiptdate\n    - l_shipinstruct\n    - l_shipmode\n    - l_comment\n    MAPPING:\n    - EXPRESSION: l_orderkey\n      NAME: l_orderkey\n    - EXPRESSION: l_partkey\n      NAME: l_partkey\n    - EXPRESSION: l_suppkey\n      NAME: l_suppkey\n    - EXPRESSION: l_linenumber\n      NAME: l_linenumber\n    - EXPRESSION: l_quantity\n      NAME: l_quantity\n    - EXPRESSION: l_extendedprice\n      NAME: l_extendedprice\n    - EXPRESSION: l_discount\n      NAME: l_discount\n    - EXPRESSION: l_tax\n      NAME: l_tax\n    - EXPRESSION: l_returnflag\n      NAME: l_returnflag\n    - EXPRESSION: l_linestatus\n      NAME: l_linestatus\n    - EXPRESSION: l_shipdate\n      NAME: l_shipdate\n    - EXPRESSION: l_commitdate\n      NAME: l_commitdate\n    - EXPRESSION: l_receiptdate\n      NAME: l_receiptdate\n    - EXPRESSION: l_shipinstruct\n      NAME: l_shipinstruct\n    - EXPRESSION: l_shipmode\n      NAME: l_shipmode\n    - EXPRESSION: l_comment\n      NAME: l_comment\n  COMMIT:\n    MAX_ROW: 1000\n    MINIMAL_INTERVAL: 1000\n    CONSISTENCY: ATLEAST\n  POLL:\n    BATCHSIZE: 1000\n    TIMEOUT: 1000\n  PROPERTIES:\n    group.id: testgroup",
  "Status": "Running",
  "ErrorMessage": "",
  "CreateTime": "2019-09-08T16:00:00Z",
  "ModifyTime": "2019-09-08T17:00:00Z",
  "GroupName": "test_group",
  "Consistency": "ATLEAST / EXACTLY",
  "ErrorLimitCount": 5,
  "FallbackOffset": "EARLIEST /  LATEST",
  "DataSourceName": "test_kafka"
}

Error codes

For a list of error codes, visit the Service error codes.