apache / doris-spark-connector

Spark Connector for Apache Doris
https://doris.apache.org/
Apache License 2.0
83 stars 98 forks source link

[Enhancemant] add label prefix configuration item for doris sink to track writing s… #235

Closed wary closed 1 month ago

wary commented 1 month ago

Proposed changes

add configuration item label_prefix for spark doris sink for tracking writing source when troubleshooting

Problem Summary:

In current version of spark doris sink, the label generation strategy is spark_streamload_YYYYMMDD_HHMMSS_{UUID}, if the doris cluster becomes unstable due to some spark writing tasks, it will be difficult to find the spark writing task. using this configuration item, we can configure some value with business meanings to allow us to locate the writing task quickly. for example we can configure this item to the application id of the writing task.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...