zhangkuantian commented on issue #35395:
URL: https://github.com/apache/airflow/issues/35395#issuecomment-1812326171
When submitting a task with the Airflow SparkKubernetesOperator, it does not
check whether the old Spark application exists. If the old application is
present, an error will be thrown. This issue can be avoided by setting a unique
name for each run in the application file's yaml configuration, eg:
```
apiVersion: "sparkoperator.k8s.io/v1beta2"
kind: SparkApplication
metadata:
name: "smoke-test-{{ execution_date.strftime('%Y%m%d') }}-{{
task_instance.try_number }}"
spec:
xxxxx
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]