Modifier and Type | Method and Description |
---|---|
TezClient |
build()
Build the actual instance of the
TezClient |
TezClient.TezClientBuilder |
setCredentials(org.apache.hadoop.security.Credentials credentials)
Setup security credentials
|
TezClient.TezClientBuilder |
setIsSession(boolean isSession)
Specify whether this client is a session or not
|
TezClient.TezClientBuilder |
setLocalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources)
Set local resources to be used by the AppMaster
|
TezClient.TezClientBuilder |
setServicePluginDescriptor(ServicePluginsDescriptor servicePluginsDescriptor)
Specify the service plugins that will be running in the AM
|
public TezClient.TezClientBuilder setIsSession(boolean isSession)
isSession
- whether the client is a sessionpublic TezClient.TezClientBuilder setLocalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources)
localResources
- local files for the App Masterpublic TezClient.TezClientBuilder setCredentials(org.apache.hadoop.security.Credentials credentials)
credentials
- Set security credentials to be used inside the app master, if
needed. Tez App Master needs credentials to access the staging
directory and for most HDFS cases these are automatically obtained
by Tez client. If the staging directory is on a file system for
which credentials cannot be obtained or for any credentials needed
by user code running inside the App Master, credentials must be
supplied by the user. These will be used by the App Master for the
next DAG. public TezClient.TezClientBuilder setServicePluginDescriptor(ServicePluginsDescriptor servicePluginsDescriptor)
servicePluginsDescriptor
- the service plugin descriptor with details about the plugins running in the AMCopyright © 2024 Apache Software Foundation. All rights reserved.