public class HDFSCredentials extends Object implements CredentialsProvider
Constructor and Description |
---|
HDFSCredentials() |
Modifier and Type | Method and Description |
---|---|
void |
updateCredentials(org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.conf.Configuration config,
CredentialsProperties props,
ActionExecutor.Context context)
Add an HDFS_DELEGATION_TOKEN to the
Credentials provided. |
public HDFSCredentials()
public void updateCredentials(org.apache.hadoop.security.Credentials credentials, org.apache.hadoop.conf.Configuration config, CredentialsProperties props, ActionExecutor.Context context) throws Exception
Credentials
provided.
This is also important to ensure that log aggregation works correctly from the NMupdateCredentials
in interface CredentialsProvider
credentials
- the credentials object which is updatedconfig
- launcher AM configurationprops
- properties for getting credential token or certificatecontext
- workflow contextException
- thrown if failedCopyright © 2018 Apache Software Foundation. All rights reserved.