[ https://issues.apache.org/jira/browse/HIVE-18905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gopal V updated HIVE-18905: --------------------------- Status: Open (was: Patch Available) > 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: Igor Kryvenko > Priority: Minor > Attachments: HIVE-18905.01.patch, HIVE-18905.03.patch, > HIVE-18905.04.patch, 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 (v8.3.2#803003)