> i could find all examples using pyhs2 only.
The pyhs2 site points to dropbox/pyhive.
But even that doesn't work for me unless I replace the TCLIService dir
with the one generated by thrift-0.9.2 (after HIVE-8829).
Maybe you might have better luck, depending on the exact version of
HiveServer2
So what is the correct way to do this.
i could find all examples using *pyhs2 only.*
On Fri, Jan 15, 2016 at 3:40 PM, Gopal Vijayaraghavan
wrote:
>
> > import pyhs2
>
> ...
> > thrift.Thrift.TApplicationException: Required field 'sessionHandle' is
> >unset! Struct:TExecuteStatementReq(sessionHan
> import pyhs2
...
> thrift.Thrift.TApplicationException: Required field 'sessionHandle' is
>unset! Struct:TExecuteStatementReq(sessionHandle:null, statement:USE
>default, confOverlay:{})
That's a version mismatch in the thrift protocol layer (JDBC to be
precise).
PyHS2 is deprecated and unmain