You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Barna Zsombor Klara (JIRA)" <ji...@apache.org> on 2016/11/08 09:20:58 UTC

[jira] [Updated] (HIVE-12891) Hive fails when java.io.tmpdir is set to a relative location

     [ https://issues.apache.org/jira/browse/HIVE-12891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Barna Zsombor Klara updated HIVE-12891:
---------------------------------------
    Attachment: HIVE-12891.5.patch

Uploading new patch.
I left most things unchanged, because I think the original patch was looking good.
I removed one API method that I think is never used (setCoerced on the variable)
and made one API method private (SystemVariables#getCoerced).
Other than that I mostly added unit tests.
I will create a new review request to discuss the comments on the current one.
Thanks to [~sircodesalot] for the work.

> Hive fails when java.io.tmpdir is set to a relative location
> ------------------------------------------------------------
>
>                 Key: HIVE-12891
>                 URL: https://issues.apache.org/jira/browse/HIVE-12891
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Reuben Kuhnert
>            Assignee: Barna Zsombor Klara
>         Attachments: HIVE-12891.01.19.2016.01.patch, HIVE-12891.03.patch, HIVE-12891.04.patch, HIVE-12891.5.patch, HIVE-12981.01.22.2016.02.patch
>
>
> The function {{SessionState.createSessionDirs}} fails when trying to create directories where {{java.io.tmpdir}} is set to a relative location.
> {code}
> \[SubtaskRunner] ERROR o.a.h.hive..ql.Driver - FAILED: IllegalArgumentException java.net.URISyntaxException: Relative path in absolute URI: file:./tmp/<user>/<guid>/hive_2015_12_11_09-12-25_352_4325234652356-1
> ...
> Minor variations:
> \[SubtaskRunner] ERROR o.a.h.hive..ql.Driver - FAILED: SemanticException Exception while processing Exception while writing out the local file 
> o.a.h.hive.ql/parse.SemanticException: Exception while processing exception while writing out local file 
> ... 
> caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:./tmp/<user>/<guid>/hive_2015_12_11_09-12-25_352_4325234652356-1 
> at o.a.h.fs.Path.initialize (206) 
> at o.a.h.fs.Path.<init>(197)... 
> at o.a.h.hive.ql.context.getScratchDir(267) 
> {code}



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