Gopal V created HIVE-18905: ------------------------------ Summary: HS2: SASL auth loads HiveConf Key: HIVE-18905 URL: https://issues.apache.org/jira/browse/HIVE-18905 Project: Hive Issue Type: Bug Reporter: Gopal V
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)