org.apache.hadoop.hive.ql.security
Class SessionStateConfigUserAuthenticator
java.lang.Object
org.apache.hadoop.hive.ql.security.SessionStateConfigUserAuthenticator
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, HiveAuthenticationProvider
public class SessionStateConfigUserAuthenticator
- extends Object
- implements HiveAuthenticationProvider
Authenticator to be used for testing and debugging. This picks the user.name
set in SessionState config, if that is null, it returns value of
System property user.name
|
Field Summary |
protected org.apache.hadoop.conf.Configuration |
conf
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conf
protected org.apache.hadoop.conf.Configuration conf
SessionStateConfigUserAuthenticator
public SessionStateConfigUserAuthenticator()
getGroupNames
public List<String> getGroupNames()
- Specified by:
getGroupNames in interface HiveAuthenticationProvider
getUserName
public String getUserName()
- Specified by:
getUserName in interface HiveAuthenticationProvider
destroy
public void destroy()
throws HiveException
- Specified by:
destroy in interface HiveAuthenticationProvider
- Throws:
HiveException
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf in interface org.apache.hadoop.conf.Configurable
setConf
public void setConf(org.apache.hadoop.conf.Configuration arg0)
- Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
setSessionState
public void setSessionState(SessionState sessionState)
- Description copied from interface:
HiveAuthenticationProvider
- This function is meant to be used only for hive internal implementations of this interface.
SessionState is not a public interface.
- Specified by:
setSessionState in interface HiveAuthenticationProvider
- Parameters:
sessionState - SessionState that created this instance
Copyright © 2014 The Apache Software Foundation. All rights reserved.