title: How to create delegated token in Metastore and HiveServer2?
body: <p>I've got HDP3 kerberized cluster.</p>
  
  <p>The question is - how can I create delegation token for user that doesn't have keytab?</p>
  
  <p>With that user I want to retrieve information from Metastore and run SQL queries on Hive tables.</p>
  
  <p>Property <code>hive.cluster.delegation.token.store.class</code> equals to <code>org.apache.hadoop.hive.thrift.ZooKeeperTokenStore</code></p>
  
  <p>Znodes <code>/hive/cluster/delegationHIVESERVER2/tokens</code> and <code>/hive/cluster/delegationMETASTORE/tokens</code> are empty.</p>
  
  <p>I've found information about how to generate DT for HDFS.</p>
  
  <p>But for Hive there is info only about how to get that token, it means, that the token already exists. But how to create one?</p>