@InterfaceAudience.Private public class TezClientUtils extends Object
| Constructor and Description |
|---|
TezClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFileSystemCredentialsFromURIs(Collection<URI> uris,
org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.conf.Configuration conf)
Populate
Credentials for the URI's to access them from their FileSystems |
static void |
addLog4jSystemProperties(String logLevel,
List<String> vargs) |
static org.apache.hadoop.fs.FileSystem |
ensureStagingDirExists(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path stagingArea)
Verify or create the Staging area directory on the configured Filesystem
|
static DAGClientAMProtocolBlockingPB |
getAMProxy(org.apache.hadoop.conf.Configuration conf,
String amHost,
int amRpcPort,
org.apache.hadoop.yarn.api.records.Token clientToAMToken) |
static String |
maybeAddDefaultMemoryJavaOpts(String javaOpts,
org.apache.hadoop.yarn.api.records.Resource resource,
double maxHeapFactor) |
public static org.apache.hadoop.fs.FileSystem ensureStagingDirExists(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path stagingArea)
throws IOException
stagingArea - Staging area directory pathIOExceptionpublic static void addFileSystemCredentialsFromURIs(Collection<URI> uris, org.apache.hadoop.security.Credentials credentials, org.apache.hadoop.conf.Configuration conf) throws IOException
Credentials for the URI's to access them from their FileSystemsuris - URIs that need to be accessedcredentials - Credentials object into which to add the credentialsconf - Configuration to access the FileSystemIOException@InterfaceAudience.Private public static void addLog4jSystemProperties(String logLevel, List<String> vargs)
@InterfaceAudience.Private public static DAGClientAMProtocolBlockingPB getAMProxy(org.apache.hadoop.conf.Configuration conf, String amHost, int amRpcPort, org.apache.hadoop.yarn.api.records.Token clientToAMToken) throws IOException
IOExceptionCopyright © 2014 Apache Software Foundation. All rights reserved.