Reply
New Contributor
Posts: 4
Registered: ‎02-07-2017

Hive Metastore Token Store

 

What is the advantage of below in Hive Metastore Delegation Token Store and use of it

 

org.apache.hadoop.hive.thrift.MemoryTokenStore

org.apache.hadoop.hive.thrift.DBTokenStore

org.apache.hadoop.hive.thrift.ZooKeeperTokenStore

 

 

Thanks,

Highlighted
Posts: 354
Topics: 0
Kudos: 39
Solutions: 27
Registered: ‎08-16-2016

Re: Hive Metastore Token Store

I have not found good information on the ZK store but HMS HA requires at a minimium the DB Token store. Something from the users sessions, presumably the delegation token, is saved in either memory, the metastore db, or ZK. The first means that you would need a new token/session if you ended up connecting to a different HMS instance. The other two allow for HA and I image ZK just adds more fault tolerance as most installs have a minimum of 3 versus 1 RDBMS. I don't think the latter is used or tested extensively though and have seen other people have issues with it, specifically when Kerberos is enabled.
Announcements