public class HadoopLoginFactory extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
HadoopLoginFactory.LoginFunction<T> |
| 构造器和说明 |
|---|
HadoopLoginFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
loginWithKerberos(org.apache.hadoop.conf.Configuration configuration,
String krb5FilePath,
String kerberosPrincipal,
String kerberosKeytabPath,
HadoopLoginFactory.LoginFunction<T> action)
Login with kerberos, and do the given action after login successfully.
|
static <T> T |
loginWithRemoteUser(org.apache.hadoop.conf.Configuration configuration,
String remoteUser,
HadoopLoginFactory.LoginFunction<T> action)
Login with remote user, and do the given action after login successfully.
|
public static <T> T loginWithKerberos(org.apache.hadoop.conf.Configuration configuration,
String krb5FilePath,
String kerberosPrincipal,
String kerberosKeytabPath,
HadoopLoginFactory.LoginFunction<T> action)
throws IOException,
InterruptedException
public static <T> T loginWithRemoteUser(org.apache.hadoop.conf.Configuration configuration,
String remoteUser,
HadoopLoginFactory.LoginFunction<T> action)
throws Exception
ExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.