Uses of Class
org.apache.hadoop.security.UserGroupInformation
Packages that use UserGroupInformation
Package
Description
An abstract file system API.
Tools to help define network clients and servers.
Classes for hadoop security.
Support for service-level authorization.
Support for delegation tokens.
ZooKeeper secret manager for TokenIdentifiers and DelegationKeys.
Common utilities.
-
Uses of UserGroupInformation in org.apache.hadoop.fs
Methods in org.apache.hadoop.fs that return UserGroupInformationMethods in org.apache.hadoop.fs with parameters of type UserGroupInformationModifier and TypeMethodDescriptionstatic voidFileSystem.closeAllForUGI(UserGroupInformation ugi) Close all cached FileSystem instances for a given UGI. -
Uses of UserGroupInformation in org.apache.hadoop.ipc
Fields in org.apache.hadoop.ipc declared as UserGroupInformationMethods in org.apache.hadoop.ipc that return UserGroupInformationModifier and TypeMethodDescriptionabstract UserGroupInformationExternalCall.getRemoteUser()Server.Call.getRemoteUser()static UserGroupInformationServer.getRemoteUser()Returns the RPC remote user when invoked inside an RPC.Schedulable.getUserGroupInformation()Server.Call.getUserGroupInformation()Methods in org.apache.hadoop.ipc with parameters of type UserGroupInformationModifier and TypeMethodDescriptionstatic <T> ProtocolProxy<T>RPC.getProtocolProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory) Get a protocol proxy that contains a proxy connection to a remote server and a set of methods that are supported by the serverstatic <T> ProtocolProxy<T>RPC.getProtocolProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy) Get a protocol proxy that contains a proxy connection to a remote server and a set of methods that are supported by the server.static <T> ProtocolProxy<T>RPC.getProtocolProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth) Get a protocol proxy that contains a proxy connection to a remote server and a set of methods that are supported by the server.static <T> ProtocolProxy<T>RPC.getProtocolProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) Get a protocol proxy that contains a proxy connection to a remote server and a set of methods that are supported by the server.<T> ProtocolProxy<T>ProtobufRpcEngine.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout) Deprecated.<T> ProtocolProxy<T>ProtobufRpcEngine.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy) Deprecated.<T> ProtocolProxy<T>ProtobufRpcEngine.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) Deprecated.<T> ProtocolProxy<T>ProtobufRpcEngine2.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout) <T> ProtocolProxy<T>ProtobufRpcEngine2.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy) <T> ProtocolProxy<T>ProtobufRpcEngine2.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) static <T> TRPC.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory) Construct a client-side proxy object that implements the named protocol, talking to a server at the named address.static <T> TRPC.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout) Construct a client-side proxy that implements the named protocol, talking to a server at the named address.<T> ProtocolProxy<T>RpcEngine.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy) Construct a client-side proxy object.<T> ProtocolProxy<T>RpcEngine.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) Construct a client-side proxy object.<T> ProtocolProxy<T>WritableRpcEngine.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy) Deprecated.Construct a client-side proxy object that implements the named protocol, talking to a server at the named address.<T> ProtocolProxy<T>WritableRpcEngine.getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) Deprecated.Construct a client-side proxy object that implements the named protocol, talking to a server at the named address.Constructors in org.apache.hadoop.ipc with parameters of type UserGroupInformationModifierConstructorDescriptionConnectionId(InetSocketAddress address, Class<?> protocol, UserGroupInformation ticket, int rpcTimeout, RetryPolicy connectionRetryPolicy, Configuration conf) protectedInvoker(Class<?> protocol, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) protectedInvoker(Class<?> protocol, InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) -
Uses of UserGroupInformation in org.apache.hadoop.security
Methods in org.apache.hadoop.security that return UserGroupInformationModifier and TypeMethodDescriptionstatic UserGroupInformationUserGroupInformation.createProxyUser(String user, UserGroupInformation realUser) Create a proxy user using username of the effective user and the ugi of the real user.static UserGroupInformationUserGroupInformation.createProxyUserForTesting(String user, UserGroupInformation realUser, String[] userGroups) Create a proxy user UGI for testing HDFS and MapReducestatic UserGroupInformationUserGroupInformation.createRemoteUser(String user) Create a user from a login name.static UserGroupInformationUserGroupInformation.createRemoteUser(String user, SaslRpcServer.AuthMethod authMethod) Create a user from a login name.static UserGroupInformationUserGroupInformation.createUserForTesting(String user, String[] userGroups) Create a UGI for testing HDFS and MapReducestatic UserGroupInformationUserGroupInformation.getBestUGI(String ticketCachePath, String user) Find the most appropriate UserGroupInformation to usestatic UserGroupInformationUserGroupInformation.getCurrentUser()Return the current user, including any doAs in the current stack.static UserGroupInformationUserGroupInformation.getLoginUser()Get the currently logged in user.UserGroupInformation.getRealUser()get RealUser (vs.static UserGroupInformationUserGroupInformation.getRealUserOrSelf(UserGroupInformation user) If this is a proxy user, get the real user.static UserGroupInformationUserGroupInformation.getUGIFromSubject(Subject subject) Create a UserGroupInformation from a Subject with Kerberos principal.static UserGroupInformationUserGroupInformation.getUGIFromTicketCache(String ticketCache, String user) Create a UserGroupInformation from a Kerberos ticket cache.static UserGroupInformationUserGroupInformation.loginUserFromKeytabAndReturnUGI(String user, String path) Log a user in from a keytab file.Methods in org.apache.hadoop.security with parameters of type UserGroupInformationModifier and TypeMethodDescriptionstatic UserGroupInformationUserGroupInformation.createProxyUser(String user, UserGroupInformation realUser) Create a proxy user using username of the effective user and the ugi of the real user.static UserGroupInformationUserGroupInformation.createProxyUserForTesting(String user, UserGroupInformation realUser, String[] userGroups) Create a proxy user UGI for testing HDFS and MapReducevoidKDiag.dumpTokens(UserGroupInformation ugi) Dump all tokens of a UGI.UserGroupInformation.getRealAuthenticationMethod(UserGroupInformation ugi) Returns the authentication method of a ugi.static UserGroupInformationUserGroupInformation.getRealUserOrSelf(UserGroupInformation user) If this is a proxy user, get the real user.static voidUserGroupInformation.logAllUserInfo(UserGroupInformation ugi) Log all (current, real, login) UGI and token info into UGI debug log.static voidUserGroupInformation.logAllUserInfo(org.slf4j.Logger log, UserGroupInformation ugi) Log all (current, real, login) UGI and token info into specified log.static voidUserGroupInformation.logUserInfo(org.slf4j.Logger log, String caption, UserGroupInformation ugi) Log current UGI and token information into specified log.static voidUserGroupInformation.setLoginUser(UserGroupInformation ugi) Constructors in org.apache.hadoop.security with parameters of type UserGroupInformationModifierConstructorDescriptionSaslRpcClient(UserGroupInformation ugi, Class<?> protocol, InetSocketAddress serverAddr, Configuration conf) Create a SaslRpcClient that can be used by a RPC client to negotiate SASL authentication with a RPC server -
Uses of UserGroupInformation in org.apache.hadoop.security.authorize
Methods in org.apache.hadoop.security.authorize with parameters of type UserGroupInformationModifier and TypeMethodDescriptionvoidDefaultImpersonationProvider.authorize(UserGroupInformation user, InetAddress remoteAddress) default voidImpersonationProvider.authorize(UserGroupInformation user, String remoteAddress) Authorize the superuser which is doing doAs.voidImpersonationProvider.authorize(UserGroupInformation user, InetAddress remoteAddress) Authorize the superuser which is doing doAs.static voidProxyUsers.authorize(UserGroupInformation user, String remoteAddress) Authorize the superuser which is doing doAs.static voidProxyUsers.authorize(UserGroupInformation user, String remoteAddress, Configuration conf) Deprecated.static voidProxyUsers.authorize(UserGroupInformation user, InetAddress remoteAddress) Authorize the superuser which is doing doAs.voidServiceAuthorizationManager.authorize(UserGroupInformation user, Class<?> protocol, Configuration conf, InetAddress addr) Authorize the user to access the protocol being used.booleanAccessControlList.isUserAllowed(UserGroupInformation ugi) final booleanAccessControlList.isUserInList(UserGroupInformation ugi) Checks if a user represented by the providedUserGroupInformationis a member of the Access Control List. -
Uses of UserGroupInformation in org.apache.hadoop.security.token
Methods in org.apache.hadoop.security.token that return UserGroupInformationModifier and TypeMethodDescriptionabstract UserGroupInformationTokenIdentifier.getUser()Get the Ugi with the username encoded in the token identifier -
Uses of UserGroupInformation in org.apache.hadoop.security.token.delegation
Methods in org.apache.hadoop.security.token.delegation that return UserGroupInformationModifier and TypeMethodDescriptionAbstractDelegationTokenIdentifier.getUser()Get the username encoded in the token identifier -
Uses of UserGroupInformation in org.apache.hadoop.security.token.delegation.web
Methods in org.apache.hadoop.security.token.delegation.web that return UserGroupInformationModifier and TypeMethodDescriptionstatic UserGroupInformationHttpUserGroupInformation.get()Returns the remoteUserGroupInformationin context for the current HTTP request, taking into account proxy user requests.DelegationTokenManager.verifyToken(Token<? extends AbstractDelegationTokenIdentifier> token) Methods in org.apache.hadoop.security.token.delegation.web with parameters of type UserGroupInformationModifier and TypeMethodDescriptionToken<? extends AbstractDelegationTokenIdentifier>DelegationTokenManager.createToken(UserGroupInformation ugi, String renewer) Token<? extends AbstractDelegationTokenIdentifier>DelegationTokenManager.createToken(UserGroupInformation ugi, String renewer, String service) -
Uses of UserGroupInformation in org.apache.hadoop.util
Methods in org.apache.hadoop.util that return UserGroupInformationModifier and TypeMethodDescriptionstatic UserGroupInformationProtoUtil.getUgi(org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto context) static UserGroupInformationProtoUtil.getUgi(org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto userInfo) Methods in org.apache.hadoop.util with parameters of type UserGroupInformationModifier and TypeMethodDescriptionstatic org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProtoProtoUtil.makeIpcConnectionContext(String protocol, UserGroupInformation ugi, SaslRpcServer.AuthMethod authMethod) This method creates the connection context using exactly the same logic as the old connection context as was done for writable where the effective and real users are set based on the auth method.
ProxyUsers.authorize(UserGroupInformation, String)instead.