Added a tool that prints the Hive username and password from inside a… #1
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.
I'm storing this pull request here because I prefer to have another pull-request merged first:
jcrist#210 (afterward I would like to merge this as well to the original skein project)
The context: I would like to be able to connect to Hive using a pure-python library (PyHive) and authenticate with the Hive Delegation Token.
The problem: The Hadoop delegation token file is written in Hadoop Text format(gihub-link1, stackoverflow-link1)
I would like to have a small tool based on the same idea as the
gihub-link1
repo above as part of the skein library.The alternative is re-implementing a File Reader in Python. That is a big effort that I would like to avoid.
I think that this approach is similar to PySpark. There there is a connection (gateway) between the Python program and the one running on JVM. (I couldn't find the code that gets the credentials through the gateway, but I can look again.)
I wrote the code with a self-centered view, only addressing my specific problem because to me it looks like each database has its own way of authenticating and I didn't spend the time to read&understand all of them to be able to write a generic tool here. I assume that this code will evolve to be more generic in the future.
As always I appreciate any feedback.