Skip to content

spark-submit: replace principle by principal - #44150

Merged
eladkal merged 6 commits into
apache:mainfrom
brouberol:spark-submit-provider-kerberos-typo
Nov 19, 2024
Merged

spark-submit: replace principle by principal#44150
eladkal merged 6 commits into
apache:mainfrom
brouberol:spark-submit-provider-kerberos-typo

Conversation

@brouberol

Copy link
Copy Markdown
Contributor

This is related to #43679, in which the airflow.security.kerberos.get_kerberos_principle function was renamed get_kerberos_principle.

In this patch, we introduce a try/except block around this import, getting ready to deprecate the typo-ed function in Airflow 3.0.

We also fix a innocuous typo in a unit test.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

This is related to apache#43679, in which the `airflow.security.kerberos.get_kerberos_principle` function was renamed `get_kerberos_principle`.

In this patch, we introduce a `try/except` block around this import,
getting ready to deprecate the typo-ed function in Airflow 3.0.

We also fix a innocuous typo in a unit test.

Signed-off-by: Balthazar Rouberol <brouberol@wikimedia.org>
Comment thread providers/src/airflow/providers/apache/spark/hooks/spark_submit.py Outdated

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Static checks currently fail.

Comment thread providers/src/airflow/providers/apache/spark/hooks/spark_submit.py Outdated
@brouberol

Copy link
Copy Markdown
Contributor Author

Sorry, I was afk for a bit. Thanks for taking care of the fixes!

Comment thread providers/src/airflow/providers/apache/spark/hooks/spark_submit.py Outdated
Comment thread providers/src/airflow/providers/apache/spark/hooks/spark_submit.py Outdated
Comment thread providers/src/airflow/providers/apache/spark/hooks/spark_submit.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants