public class CredentialsProviderFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CRED_KEY |
static String |
HDFS |
static String |
JHS |
static String |
YARN |
| Modifier and Type | Method and Description |
|---|---|
CredentialsProvider |
createCredentialsProvider(String type)
Create Credential object
|
static void |
ensureKerberosLogin()
Relogs into Kerberos using the Keytab for the Oozie server user.
|
static CredentialsProviderFactory |
getInstance() |
String |
trim(String str)
To trim string
|
public static final String CRED_KEY
public static final String HDFS
public static final String YARN
public static final String JHS
public static CredentialsProviderFactory getInstance() throws Exception
Exceptionpublic CredentialsProvider createCredentialsProvider(String type) throws Exception
type - Exceptionpublic static void ensureKerberosLogin() throws IOException
CredentialsProvider implementations to ensure that the Kerberos credentials are current and won't expire
too soon.IOExceptionCopyright © 2020 Apache Software Foundation. All rights reserved.