@InterfaceAudience.Private public class TezClientUtils extends Object
| Constructor and Description |
|---|
TezClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addDefaultsToTaskLaunchCmdOpts(String vOpts,
org.apache.hadoop.conf.Configuration conf) |
static String |
addDefaultsToTaskLaunchCmdOpts(String vOpts,
org.apache.hadoop.conf.Configuration conf,
JavaOptsChecker javaOptsChecker) |
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 void |
addLogParamsToEnv(Map<String,String> environment,
String[] logParams) |
static org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext |
createApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationId appId,
DAG dag,
String amName,
org.apache.tez.client.AMConfiguration amConfig,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> tezJarResources,
org.apache.hadoop.security.Credentials sessionCreds,
boolean tezLrsAsArchive,
TezApiVersionInfo apiVersionInfo,
HistoryACLPolicyManager historyACLPolicyManager,
ServicePluginsDescriptor servicePluginsDescriptor,
JavaOptsChecker javaOptsChecker)
Create an ApplicationSubmissionContext to launch a Tez AM
|
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 |
maybeAddDefaultLoggingJavaOpts(String logLevel,
String javaOpts) |
static String |
maybeAddDefaultMemoryJavaOpts(String javaOpts,
org.apache.hadoop.yarn.api.records.Resource resource,
double maxHeapFactor) |
static String[] |
parseLogParams(String logConfig) |
static void |
setApplicationPriority(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context,
org.apache.tez.client.AMConfiguration amConfig) |
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 org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext createApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationId appId,
DAG dag,
String amName,
org.apache.tez.client.AMConfiguration amConfig,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> tezJarResources,
org.apache.hadoop.security.Credentials sessionCreds,
boolean tezLrsAsArchive,
TezApiVersionInfo apiVersionInfo,
HistoryACLPolicyManager historyACLPolicyManager,
ServicePluginsDescriptor servicePluginsDescriptor,
JavaOptsChecker javaOptsChecker)
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
appId - Application Iddag - DAG to be submittedamName - Name for the applicationamConfig - AM ConfigurationtezJarResources - Resources to be used by the AMsessionCreds - the credential object which will be populated with session specifichistoryACLPolicyManager - servicePluginsDescriptor - descriptor for services which may be running in the AMIOExceptionorg.apache.hadoop.yarn.exceptions.YarnException@InterfaceAudience.Private public static String maybeAddDefaultLoggingJavaOpts(String logLevel, String javaOpts)
@InterfaceAudience.Private public static String addDefaultsToTaskLaunchCmdOpts(String vOpts, org.apache.hadoop.conf.Configuration conf) throws TezException
TezException@InterfaceAudience.Private public static String addDefaultsToTaskLaunchCmdOpts(String vOpts, org.apache.hadoop.conf.Configuration conf, JavaOptsChecker javaOptsChecker) throws TezException
TezException@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
IOException@InterfaceAudience.Private public static String maybeAddDefaultMemoryJavaOpts(String javaOpts, org.apache.hadoop.yarn.api.records.Resource resource, double maxHeapFactor)
@InterfaceAudience.Private public static void addLogParamsToEnv(Map<String,String> environment, String[] logParams)
public static void setApplicationPriority(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context,
org.apache.tez.client.AMConfiguration amConfig)
Copyright © 2016 Apache Software Foundation. All rights reserved.