Could this library be used with Hive Metastore Standalone with Kerberos support #139
-
Hive Metastore can be installed in a standalone fashion. Could this this library be used to connect to Hive Metastore Standalone, or does it expect the full Hive ecosystem. Additionally, in our configuration our server principal is a different value from our client principal, is it is possible to configure Kerberos authentication in this fashion. i.e. our value for hive.metastore.kerberos.principal is different from the principal used with kinit. We have this working in a JVM with org.apache.hive:hive-standalone-metastore:3.1.2 library, and we where wondering if we could do the same but in go. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hello, unfortunately there's not a client for the hive metastore in this package. I'm not aware of any hive metastore libraries in go that also support kerberos but I guess there could be one out there. This is something I've wanted to do but haven't had the time yet. I may add it in the next weeks/months.
Then are you setting some values in the metastore property |
Beta Was this translation helpful? Give feedback.
-
I did try to get kerberos to work with the metastore client. See here. The whole branch is https://github.com/beltran/gohive/tree/metastore_client. It was working with non-kerberos auth. I couldn't get it work with kerberos.
This was my expectation as well. This was years ago, but I remember I was getting an error and simply didn't know how to proceed. |
Beta Was this translation helpful? Give feedback.
-
hmm, I actually think it's working now https://github.com/beltran/gohive/tree/metastore_client. I added an example of how to use the metastore client with kerberos, it can be run with I'll merge the PR in the next days once I clean it up. |
Beta Was this translation helpful? Give feedback.
-
Closing the discussion since querying metastore is supported now. |
Beta Was this translation helpful? Give feedback.
Hello, unfortunately there's not a client for the hive metastore in this package. I'm not aware of any hive metastore libraries in go that also support kerberos but I guess there could be one out there. This is something I've wanted to do but haven't had the time yet. I may add it in the next weeks/months.
Then are you setting some values in the metastore property
hadoop.proxyuser.hive.groups
that allows the kinit user to impersonate the metastore user? If this is the case the metastore client shouldn't have to worry about the kinit user and the metastore user being different.