Hi,

I'm trying to convert some of our Hive queries to use the pyhs2 Python
package (https://github.com/BradRuderman/pyhs2).  Because we have our
own jar with some custom SerDes and UDFs, we need to use the "add jar
/path/to/my.jar" command to make them available to Hive.  This works
fine using the Hive CLI directly and also with the Beeline client.  It
doesn't work, however, with pyhs2.

I naively tracked the problem down to a bug in
AddResourceProcessor.run().  See HIVE-6971 in Jira.  My attempted fix
turned out to not be correct because it breaks the "add" command when
used from the CLI and Beeline.  It seems the "add" part of any "add
file|jar|archive ..." command needs to get stripped off somewhere
before it gets passed to AddResourceProcessor.run().  Unfortunately, I
can't find that location when the command is received from pyhs2.  Can
someone help?

David
-- 
David Engel
[email protected]

Reply via email to