public class SecureProxySupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HCAT_SERVICE |
| Constructor and Description |
|---|
SecureProxySupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgs(List<String> args)
Add hcat args.
|
void |
addEnv(Map<String,String> env)
Add Hadoop env variables.
|
void |
close()
Cleanup
|
String |
getHcatServiceStr()
The token to pass to hcat.
|
org.apache.hadoop.fs.Path |
getTokenPath()
The file where we store the auth token
|
org.apache.hadoop.fs.Path |
open(String user,
org.apache.hadoop.conf.Configuration conf)
Create the delegation token.
|
public static final String HCAT_SERVICE
public org.apache.hadoop.fs.Path getTokenPath()
public String getHcatServiceStr()
public org.apache.hadoop.fs.Path open(String user, org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void close()
Copyright © 2017 The Apache Software Foundation. All rights reserved.