Create GenericHiveRecordCursor within doAs block to pass the correct credentials to storage#16333
Merged
vkorukanti merged 1 commit intoprestodb:masterfrom Jun 29, 2021
Merged
Conversation
86f7adf to
e8e81d8
Compare
Contributor
Author
|
@vkorukanti do you mind taking a look on this change? Thanks in advance! |
Contributor
Contributor
|
Or just put the below block within a |
e8e81d8 to
4ce184d
Compare
vkorukanti
reviewed
Jun 28, 2021
Contributor
There was a problem hiding this comment.
nit: you can return the value returned by call hdfsEnvironment.doAs(...) like return hdfsEnvironment.doAs
4ce184d to
0275a28
Compare
vkorukanti
approved these changes
Jun 28, 2021
Contributor
|
Hi @chliang71 / @vkorukanti |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add authentication when creating Hive page source, this is needed when:
Currently this code path in Presto does not include authentication, so this fetching remote Avro schema would fail. Causing exception something like below:
Test plan - (Please fill in how you tested your changes)
Tested in our internal testing cluster, with this change, the exception no longer shows up.