org.apache.oozie.action.hadoop
Class HCatCredentialHelper

java.lang.Object
  extended by org.apache.oozie.action.hadoop.HCatCredentialHelper

public class HCatCredentialHelper
extends Object

Helper class to handle the HCat credentials Performs internally the heavy-lifting of fetching delegation tokens from Hive Metastore, abstracted from the user Token is added to jobConf


Constructor Summary
HCatCredentialHelper()
           
 
Method Summary
 org.apache.hadoop.hive.metastore.HiveMetaStoreClient getHCatClient(String principal, String server)
          Getting the HCat client.
 void set(org.apache.hadoop.mapred.JobConf launcherJobConf, String principal, String server)
          This Function will set the HCat token to jobconf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCatCredentialHelper

public HCatCredentialHelper()
Method Detail

set

public void set(org.apache.hadoop.mapred.JobConf launcherJobConf,
                String principal,
                String server)
         throws Exception
This Function will set the HCat token to jobconf

Parameters:
launcherJobConf - - job conf
principal - - principal for HCat server
server - - Serevr URI for HCat server
Throws:
Exception

getHCatClient

public org.apache.hadoop.hive.metastore.HiveMetaStoreClient getHCatClient(String principal,
                                                                          String server)
                                                                   throws org.apache.hadoop.hive.metastore.api.MetaException
Getting the HCat client.

Parameters:
principal -
server -
Returns:
HiveMetaStoreClient
Throws:
org.apache.hadoop.hive.metastore.api.MetaException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.