-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Add kerberos related connection fields(principal, keytab) on SparkSubmitHook #40757
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
Add kerberos related connection fields(principal, keytab) on SparkSubmitHook #40757
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
|
I am currently writing the test code, and I will change the draft status once the test code is completed. |
b71bbac to
afb28cb
Compare
84d8f11 to
8148d5c
Compare
3b30a60 to
51032ed
Compare
seyoon-lim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄
|
@seyoon-lim you need to rebase. I can't do that for you as you removed the allow mantainers edits |
|
@eladkal I've already merged the PR with the main branch, but if necessary, please let me know and I will close and reopen the PR. |
|
Cool. Can you address the comments left by @nevcohen ? If issues are resooved then please resolve the threads so we know it was addressed |
@eladkal |
nevcohen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few tests, the rest looks great!
3cf300c to
b4364fe
Compare
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
…mitHook (apache#40757) * Add: added kerberos related connection fields(principal, keytab) * Update airflow/providers/apache/spark/hooks/spark_submit.py * Update airflow/providers/apache/spark/hooks/spark_submit.py * fixed wrong logic since keytab priority * fixed wrong temp_file_name logic * Added annotations on operators/spark_submit.py * changed raise Exception to AirflowException * Fixed principal referencing bug * Added checksum validating logic to do not rewrite keytab * Fixed arg-type error * simplified existing keytab compare logic * Added principal test cases * Added keytab test cases * added principal & keytab to expected conn values * added principal & keytab getter for the borken conneciton case * added guard logic for the case that failed to b64decode * removed useless logic on test code * Mod: improved keytab_value_override test case * changed func name _get_keytab_from_base64 to _create_keytab_path_from_base64_keytab * added additional comment on create_keytab parts * added base64 decode exception test case * added keytab write & move exception test case * removed _get_keytab & _get_principal * rollback _get_keytab & _get_principal * set default values of keytab & principal on conn_data --------- Co-authored-by: Youngha, Park <32288527+softyoungha@users.noreply.github.com>
…mitHook (apache#40757) * Add: added kerberos related connection fields(principal, keytab) * Update airflow/providers/apache/spark/hooks/spark_submit.py * Update airflow/providers/apache/spark/hooks/spark_submit.py * fixed wrong logic since keytab priority * fixed wrong temp_file_name logic * Added annotations on operators/spark_submit.py * changed raise Exception to AirflowException * Fixed principal referencing bug * Added checksum validating logic to do not rewrite keytab * Fixed arg-type error * simplified existing keytab compare logic * Added principal test cases * Added keytab test cases * added principal & keytab to expected conn values * added principal & keytab getter for the borken conneciton case * added guard logic for the case that failed to b64decode * removed useless logic on test code * Mod: improved keytab_value_override test case * changed func name _get_keytab_from_base64 to _create_keytab_path_from_base64_keytab * added additional comment on create_keytab parts * added base64 decode exception test case * added keytab write & move exception test case * removed _get_keytab & _get_principal * rollback _get_keytab & _get_principal * set default values of keytab & principal on conn_data --------- Co-authored-by: Youngha, Park <32288527+softyoungha@users.noreply.github.com>
closes: #40749
^ 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.rstor{issue_number}.significant.rst, in newsfragments.