-
Notifications
You must be signed in to change notification settings - Fork 76
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
Use different tokens instead of forcing WD and all HMS to use the same delegatetoken in the kerberos environment #313
Conversation
070d5b2
to
ce8a67b
Compare
…e delegatetoken in the kerberos environment
ce8a67b
to
86176c4
Compare
@patduin Could you review this or have someone else review it as well. We have been making this change for several months, and tested many times. I think it can really help many people. |
The failed reason seems to have nothing to do with my pr |
Yup I'll try to get some eyes on this next week, thank you!!!
…On Fri, 12 Apr 2024, 10:40 tian bao, ***@***.***> wrote:
@patduin <https://github.com/patduin> Could you review this or have
someone else review it as well. We have been making this change for several
months, and tested many times. I think it can really help many people.
—
Reply to this email directly, view it on GitHub
<#313 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAP6JGEGIGMZCBXYCC2JUVLY46MY3AVCNFSM6AAAAABGDSXUJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRGMYDAMRWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/MetaStoreProxyServer.java
Outdated
Show resolved
Hide resolved
waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/FederatedHMSHandler.java
Outdated
Show resolved
Hide resolved
waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/MetaStoreProxyServer.java
Outdated
Show resolved
Hide resolved
waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/util/SaslHelper.java
Outdated
Show resolved
Hide resolved
...dance-core/src/main/java/com/hotels/bdp/waggledance/client/ThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
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.
I cannot accept this PR as it is now. This needs some refactoring to separate kerberos code from the non kerberos paths and remove all the static class dependencies introduced.
...dance-core/src/main/java/com/hotels/bdp/waggledance/client/ThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
...dance-core/src/main/java/com/hotels/bdp/waggledance/client/ThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
Wait for me for a while, I will make some changes and submit it again. |
@patduin @jmnunezizu I have completed the modifications, please help me take a look
|
At the same time, I changed the code to not require manual kinit and can automatically renew tickets. |
I think the failed test case |
@patduin @jmnunezizu Could you help review it? This feature is really useful for users in the kerberos environment. |
Hi @flaming-archer – we'll get to it as soon as we can. Sorry for the delay and thanks for the additional changes and contribution. |
It's been a week now.... |
@patduin @jmnunezizu This feature is really great. Could you help me take a look. |
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
...e-core/src/main/java/com/hotels/bdp/waggledance/client/SaslThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
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 some cleanups but looks ok, thanks for patience while we found time to review.
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Show resolved
Hide resolved
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Show resolved
Hide resolved
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Show resolved
Hide resolved
...e-core/src/main/java/com/hotels/bdp/waggledance/client/SaslThriftMetastoreClientManager.java
Show resolved
Hide resolved
...e-core/src/main/java/com/hotels/bdp/waggledance/client/SaslThriftMetastoreClientManager.java
Show resolved
Hide resolved
...dance-core/src/main/java/com/hotels/bdp/waggledance/client/ThriftMetastoreClientManager.java
Outdated
Show resolved
Hide resolved
waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/FederatedHMSHandler.java
Show resolved
Hide resolved
waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/SaslServerWrapper.java
Outdated
Show resolved
Hide resolved
I've merged the other hive3 PR please have a look at the conflicts, thank you. |
Sorry, I only saw it now. I saw that PR, it was submitted by my colleague, and I know her changes. I will modify it together based on this. Wait for me for a moment. |
…aGroup#315) * Add personalized configuration parameters for each metastore. * Add personalized configuration parameters for each metastore * Recover * Update junit test * Update Junit Test * Update Junit Test * Update Junit Test * Format the code and update the readme * Revert * Update FederatedMetaStoreTest.java * Update PrimaryMetaStoreTest.java * Update AbstractMetaStore.java using new HashMap so the generated Yaml doesn't generate an anchor (reference &id001) * Update YamlFederatedMetaStoreStorageTest.java fixing test --------- Co-authored-by: yangyx <[email protected]> Co-authored-by: Patrick Duin <[email protected]>
# Conflicts: # README.md # waggle-dance-api/src/main/java/com/hotels/bdp/waggledance/api/model/AbstractMetaStore.java # waggle-dance-api/src/test/java/com/hotels/bdp/waggledance/api/model/FederatedMetaStoreTest.java # waggle-dance-api/src/test/java/com/hotels/bdp/waggledance/api/model/PrimaryMetaStoreTest.java # waggle-dance-core/src/test/java/com/hotels/bdp/waggledance/mapping/service/impl/YamlFederatedMetaStoreStorageTest.java
@patduin @jmnunezizu Modified, pls take a look. |
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.
One small comment. Then I'll approve.
...re/src/main/java/com/hotels/bdp/waggledance/client/AbstractThriftMetastoreClientManager.java
Show resolved
Hide resolved
@patduin pls take a look at it. |
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.
Thank you
📝 Description
1.Use WD's own token.
2. Support HMS to use different tokens separately.
3. Refactored the delegatetoken section, greatly simplifying the code logic.
4. After extensive testing in our environment, it is OK.
🔗 Related Issues
#309