Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spark-submit: replace principle by principal #44150

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

brouberol
Copy link
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 <[email protected]>
Copy link
Contributor

@shahar1 shahar1 left a comment

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.

@brouberol
Copy link
Contributor Author

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

@eladkal eladkal merged commit 672056f into apache:main Nov 19, 2024
62 checks passed
LefterisXefteris pushed a commit to LefterisXefteris/airflow that referenced this pull request Jan 5, 2025
* spark-submit: replace `principle` by `principal`

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 <[email protected]>

* Update providers/src/airflow/providers/apache/spark/hooks/spark_submit.py

* Update providers/src/airflow/providers/apache/spark/hooks/spark_submit.py

* Update providers/src/airflow/providers/apache/spark/hooks/spark_submit.py

* Update providers/src/airflow/providers/apache/spark/hooks/spark_submit.py

* Update providers/src/airflow/providers/apache/spark/hooks/spark_submit.py

---------

Signed-off-by: Balthazar Rouberol <[email protected]>
Co-authored-by: Elad Kalif <[email protected]>
Co-authored-by: rom sharon <[email protected]>
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