I can report I see this same error when working with the Perl thrift Hive client ( http://search.cpan.org/~dmor/Thrift-API-HiveClient2-0.011/lib/Thrift/API/HiveClient2.pm), and with the newly released Hive 0.12.0.
Is anyone successfully using Hiveserver2, or do I have something odd in my environment? On 14 October 2013 17:44, Andy Sykes <andy.sy...@forward3d.com> wrote: > Hi there, > > We're using the rbhive gem (https://github.com/forward3d/rbhive) to > connect to the Hiveserver2 Thrift service running on Hive 0.11. > > I've turned SASL auth off with the following in hive-site.xml: > > <property> > <name>hive.server2.authentication</name> > <value>NOSASL</value> > </property> > > When I connect, I get the following stack trace in the Hiveserver2 logs: > > 13/10/14 17:42:17 ERROR server.TThreadPoolServer: Error occurred during > processing of message. > java.lang.ClassCastException: org.apache.thrift.transport.TSocket cannot > be cast to org.apache.thrift.transport.TSaslServerTransport > at > org.apache.hive.service.auth.TUGIContainingProcessor.process(TUGIContainingProcessor.java:35) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:206) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > > This didn't happen with Hive 0.10 - we could connect with SASL turned off > without a problem. > > Can anyone shed any light on this? > > -- > *Andy Sykes* > DevOps Engineer > > +4420 7806 5904 > +4475 9005 2109 > > 19 Mandela Street > Floor 2, Centro 3 > London > NW1 0DU > > Privacy & Email Policy <http://forward3d.com/terms.html> > -- *Andy Sykes* DevOps Engineer +4420 7806 5904 +4475 9005 2109 19 Mandela Street Floor 2, Centro 3 London NW1 0DU Privacy & Email Policy <http://forward3d.com/terms.html>