hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kryvenko Igor (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-18905) HS2: SASL auth loads HiveConf for every JDBC call
Date Thu, 08 Mar 2018 14:34:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-18905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kryvenko Igor updated HIVE-18905:
---------------------------------
    Attachment: HIVE-18905.patch

> HS2: SASL auth loads HiveConf for every JDBC call
> -------------------------------------------------
>
>                 Key: HIVE-18905
>                 URL: https://issues.apache.org/jira/browse/HIVE-18905
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Gopal V
>            Assignee: Kryvenko Igor
>            Priority: Minor
>         Attachments: HIVE-18905.patch
>
>
> SASL authentication filter does a new HiveConf() for no good reason.
> {code}
>   public static PasswdAuthenticationProvider getAuthenticationProvider(AuthMethods authMethod)
>     throws AuthenticationException {
>     return getAuthenticationProvider(authMethod, new HiveConf());
>   }
> {code}
> The session HiveConf is not needed to do this operation & it can't be changed after
the HS2 starts up (today).
> {code}
> org.apache.hadoop.hive.conf.HiveConf.<init>() HiveConf.java:4404
> org.apache.hive.service.auth.AuthenticationProviderFactory.getAuthenticationProvider(AuthenticationProviderFactory$AuthMethods)
AuthenticationProviderFactory.java:61
> org.apache.hive.service.auth.PlainSaslHelper$PlainServerCallbackHandler.handle(Callback[])
PlainSaslHelper.java:106
> org.apache.hive.service.auth.PlainSaslServer.evaluateResponse(byte[]) PlainSaslServer.java:103
> org.apache.thrift.transport.TSaslTransport$SaslParticipant.evaluateChallengeOrResponse(byte[])
TSaslTransport.java:539
> org.apache.thrift.transport.TSaslTransport.open() TSaslTransport.java:283
> org.apache.thrift.transport.TSaslServerTransport.open() TSaslServerTransport.java:41
> org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TTransport) TSaslServerTransport.java:216
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run() TThreadPoolServer.java:269
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) ThreadPoolExecutor.java:1142
> java.util.concurrent.ThreadPoolExecutor$Worker.run() ThreadPoolExecutor.java:617
> java.lang.Thread.run() Thread.java:745
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message