You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Dan Zaratsian (JIRA)" <ji...@apache.org> on 2016/08/08 20:23:20 UTC

[jira] [Created] (HIVE-14477) Hive UDF "add archive" does not extract archive (in .zip or .tar.gz formats)

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)