hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Zaratsian (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-14477) Hive UDF "add archive" does not extract archive (in .zip or .tar.gz formats)
Date Mon, 08 Aug 2016 20:23:20 GMT
Dan Zaratsian created HIVE-14477:
------------------------------------

             Summary: Hive UDF "add archive" does not extract archive (in .zip or .tar.gz
formats)
                 Key: HIVE-14477
                 URL: https://issues.apache.org/jira/browse/HIVE-14477
             Project: Hive
          Issue Type: Bug
          Components: UDF
         Environment: HDP Sandbox 2.4
Hive 1.2.1.2.4
            Reporter: Dan Zaratsian


When using the "add archive" option as part of a Hive UDF, I noticed that the archive is not
being extracted (ie. It remains compressed as a .zip, .tar.gz, etc)

Here's my commands:

add archive /tmp/myscript.tar.gz;
select transform(id) using 'python myscript.py' from testtable;


myscript.py contains the following code:

import os
print os.listdir(os.getcwd())

I would like to deploy a python virtual environment as part of a HIve UDF. So eventually,
it would be great if I could package up the virtualenv into an archive and deploy it as a
Hive UDF.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message