类 HadoopLoginFactory
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.hive.HadoopLoginFactory
-
public class HadoopLoginFactory extends Object
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceHadoopLoginFactory.LoginFunction<T>
-
构造器概要
构造器 构造器 说明 HadoopLoginFactory()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> TloginWithKerberos(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> TloginWithRemoteUser(org.apache.hadoop.conf.Configuration configuration, String remoteUser, HadoopLoginFactory.LoginFunction<T> action)Login with remote user, and do the given action after login successfully.
-
-
-
方法详细资料
-
loginWithKerberos
public static <T> T loginWithKerberos(org.apache.hadoop.conf.Configuration configuration, String krb5FilePath, String kerberosPrincipal, String kerberosKeytabPath, HadoopLoginFactory.LoginFunction<T> action) throws IOException, InterruptedExceptionLogin with kerberos, and do the given action after login successfully.
-
loginWithRemoteUser
public static <T> T loginWithRemoteUser(org.apache.hadoop.conf.Configuration configuration, String remoteUser, HadoopLoginFactory.LoginFunction<T> action) throws ExceptionLogin with remote user, and do the given action after login successfully.- 抛出:
Exception
-
-