[ https://issues.apache.org/jira/browse/HIVE-12891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15108607#comment-15108607 ]
Reuben Kuhnert commented on HIVE-12891: --------------------------------------- I wonder if it would make sense to catch the exception and wrap in it something to tell the user that relative paths for {{java.io.tmpdir}} are not allowed (if that is indeed the case). Let me know, should be an easy change. As for the config documentation? Do you mean in [HiveConf|https://github.com/apache/hive/blob/b9d65f159d39614f510c64e58d7b09b4cf38f96f/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L253] or somewhere else? Thanks > 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: Reuben Kuhnert > Attachments: HIVE-12891.01.19.2016.01.patch > > > The function {{SessionState.createSessionDirs}} fails when trying to create > directories where {{java.io.tmpdir}} is set to a relative location. > {code} > \[uber-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: > \[uber-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)