This project has retired. For details please refer to its
Attic page .
HCatCredentialHelper (Apache Oozie Core 3.3.2 API)
org.apache.oozie.action.hadoop
Class HCatCredentialHelper
java.lang.Object
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
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
HCatCredentialHelper
public HCatCredentialHelper ()
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 confprincipal
- - principal for HCat serverserver
- - 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.