Hi,

if Spark thrift JDBC server is started with non-secure mode, it is working
fine. with a secured mode in case of pluggable authentication, I placed the
authentication class configuration in conf/hive-site.xml

 <property>
  <name>hive.server2.authentication</name>
  <value>CUSTOM</value>
 </property>
 <property>
  <name>hive.server2.custom.authentication.class</name>
 
<value>org.apache.hive.service.auth.WebConsoleAuthenticationProviderImpl</value>
 </property>

and the jar containing the implementation is in Spark classpath, still
getting exception, it seems to me it couldn't find the authentication class
I specified in the configuration:

14/10/17 12:44:33 ERROR server.TThreadPoolServer: Error occurred during
processing of message.
java.lang.RuntimeException: java.lang.NoSuchMethodException:
org.apache.hive.service.auth.PasswdAuthenticationProvider.<init>()
        at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
        at
org.apache.hive.service.auth.CustomAuthenticationProviderImpl.<init>(CustomAuthenticationProviderImpl.java:38)
        at
org.apache.hive.service.auth.AuthenticationProviderFactory.getAuthenticationProvider(AuthenticationProviderFactory.java:57)
        at
org.apache.hive.service.auth.PlainSaslHelper$PlainServerCallbackHandler.handle(PlainSaslHelper.java:61)
        at
org.apache.hive.service.auth.PlainSaslServer.evaluateResponse(PlainSaslServer.java:127)
        at
org.apache.thrift.transport.TSaslTransport$SaslParticipant.evaluateChallengeOrResponse(TSaslTransport.java:509)
        at
org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:264)
        at
org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
        at
org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
        at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:189)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:853)
Caused by: java.lang.NoSuchMethodException:
org.apache.hive.service.auth.PasswdAuthenticationProvider.<init>()
        at java.lang.Class.throwNoSuchMethodException(Class.java:367)
        at java.lang.Class.getDeclaredConstructor(Class.java:541)
        at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)

why is that?

Thanks for your help!

Jenny

Reply via email to