apache / incubator-streampark

Make stream processing easier! Easy-to-use streaming application development framework and operation platform.
https://streampark.apache.org/
Apache License 2.0
3.84k stars 990 forks source link

Caused by: org.apache.doris.flink.exception.DorisException: Load status is Label Already Exists and load job finished, change you label prefix or restore from latest savepoint! #2400

Open ai-smalleryu opened 1 year ago

ai-smalleryu commented 1 year ago

Search before asking

Java Version

1.8

Scala Version

2.12.x

StreamPark Version

2.1

Flink Version

1.16.0

deploy mode

None

What happened

When I use flink-doris-connector, there will be an exception that the label is already occupied. In this way, I must declare the parameter sink.label-prefix every time I use sql. If this parameter is not configured, the first execution will be successful. Then re-execute the task again and report an error

Error Exception

Caused by: org.apache.doris.flink.exception.DorisException: Load status is Label Already Exists and load job finished, change you label prefix or restore from latest savepoint!

Screenshots

09A96459-2FB4-4D28-9EFD-79ADDA57F250

Are you willing to submit PR?

Code of Conduct

ai-smalleryu commented 1 year ago

The test case is a normal insertion test The first run is successful when the parameter sink.label-prefix is ​​not carried, and the error is reported again after cancel,If you add parameters, you don't need to worry about this problem

CREATE TABLE flink_doris_sink (
    event_id STRING,
    guid INT,
    propJson STRING
    ) 
    WITH (
      'connector' = 'doris',
      'fenodes' = 'localhost:8030',
      'table.identifier' = 'gaotest.mall_app_events_detail1',
      'username' = 'root',
      'password' = 'root'
);