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.conf.Configuration launcherConfig,
String principal,
String server)
Getting the HCat client.
|
void |
set(org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.conf.Configuration launcherConfig,
String principal,
String server)
This Function will set the HCat token to the credentials
|
public HCatCredentialHelper()
public void set(org.apache.hadoop.security.Credentials credentials, org.apache.hadoop.conf.Configuration launcherConfig, String principal, String server) throws Exception
credentials
- - the credentialslauncherConfig
- - launcher configurationprincipal
- - principal for HCat serverserver
- - Serevr URI for HCat serverException
public org.apache.hive.hcatalog.api.HCatClient getHCatClient(org.apache.hadoop.conf.Configuration launcherConfig, String principal, String server) throws org.apache.hive.hcatalog.common.HCatException
launcherConfig
- principal
- server
- org.apache.hive.hcatalog.common.HCatException
Copyright © 2018 Apache Software Foundation. All rights reserved.