amoghrajesh commented on code in PR #67715:
URL: https://github.com/apache/airflow/pull/67715#discussion_r3327956626
##########
providers/apache/spark/src/airflow/providers/apache/spark/operators/spark_submit.py:
##########
@@ -234,6 +242,13 @@ def execute(self, context: Context) -> None:
driver_id = self.submit_job(context)
self.poll_until_complete(driver_id, context)
return self.get_job_result(driver_id, context)
+ if hook._should_track_driver_via_k8s_api():
+ hook._validate_track_driver_via_k8s_api_config()
Review Comment:
I moved the `_validate_track_driver_via_k8s_api_config()` call to before the
`_should_track_driver_via_k8s_api()` guard now, so it fires whenever
`track_driver_via_k8s_api=True` regardless of master/deploy_mode. A user
pointing the flag at a YARN connection now gets a `ValueError` too.
--
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]