We need to figure out how Hive shares delegation token secret between Hive Server and Hive Metastore in secure mode.
We have tried using Hive JDBC driver to talk to Hive from Hydrator plugins and got the following exception -
This exception indicates that the delegation token generated by Hive Metastore cannot be decoded by Hive Server. https://issues.apache.org/jira/browse/HIVE-9100 has information on how to configure Hive to share the secret. We need to try out both DB mode and Zookeeper mode and have integration tests for this.
Based on other documentation like http://www.cloudera.com/documentation/enterprise/5-6-x/topics/admin_ha_hivemetastore.html, it looks like DB mode is the preferred way for token store.