public class HCatCredentialHelper extends Object
| Constructor and Description |
|---|
HCatCredentialHelper() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hive.hcatalog.api.HCatClient |
getHCatClient(org.apache.hadoop.mapred.JobConf launcherJobConf,
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
|
public HCatCredentialHelper()
public void set(org.apache.hadoop.mapred.JobConf launcherJobConf, String principal, String server) throws Exception
launcherJobConf - - job confprincipal - - principal for HCat serverserver - - Serevr URI for HCat serverExceptionpublic org.apache.hive.hcatalog.api.HCatClient getHCatClient(org.apache.hadoop.mapred.JobConf launcherJobConf, String principal, String server) throws org.apache.hive.hcatalog.common.HCatException
jobConf - principal - server - org.apache.hive.hcatalog.common.HCatExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.