Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12891

Hive fails when java.io.tmpdir is set to a relative location

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None

    Description

      The function SessionState.createSessionDirs fails when trying to create directories where java.io.tmpdir is set to a relative location.

      \[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) 
      

      Attachments

        1. HIVE-12981.01.22.2016.02.patch
          12 kB
          Reuben Kuhnert
        2. HIVE-12891.5.patch
          14 kB
          Barna Zsombor Klara
        3. HIVE-12891.04.patch
          13 kB
          Reuben Kuhnert
        4. HIVE-12891.03.patch
          12 kB
          Reuben Kuhnert
        5. HIVE-12891.01.19.2016.01.patch
          3 kB
          Reuben Kuhnert

        Issue Links

          Activity

            People

              zsombor.klara Barna Zsombor Klara
              sircodesalot Reuben Kuhnert
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: