Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2380

Oozie Hive action failed with wrong tmp path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.3.0
    • core

    Description

      Hive action with command "show tables" or "show databases" failed

      22257 [uber-SubtaskRunner] ERROR org.apache.hadoop.hive.ql.Driver  - FAILED: IllegalArgumentException java.net.URISyntaxException: Relative path in absolute URI: file:./tmp/mapr/b79b1ef5-c8a4-4da9-a307-b4f9045c7bb9/hive_2015-10-01_11-30$
      java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:./tmp/mapr/b79b1ef5-c8a4-4da9-a307-b4f9045c7bb9/hive_2015-10-01_11-30-46_978_7012892802177357645-1
              at org.apache.hadoop.fs.Path.initialize(Path.java:217)
              at org.apache.hadoop.fs.Path.<init>(Path.java:208)
              at org.apache.hadoop.hive.ql.Context.getScratchDir(Context.java:284)
              at org.apache.hadoop.hive.ql.Context.getLocalScratchDir(Context.java:319)
              at org.apache.hadoop.hive.ql.Context.getLocalTmpPath(Context.java:414)
              at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeInternal(DDLSemanticAnalyzer.java:337)
              at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:227)
              at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:424)
              at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:308)
              at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1122)
              at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1170)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1059)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1049)
              at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:213)
              at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:165)
              at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:376)
              at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:311)
              at org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:409)
              at org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:425)
              at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:714)
              at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
              at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
              at org.apache.oozie.action.hadoop.HiveMain.runHive(HiveMain.java:306)
              at org.apache.oozie.action.hadoop.HiveMain.run(HiveMain.java:290)
              at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:47)
              at org.apache.oozie.action.hadoop.HiveMain.main(HiveMain.java:68)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:230)
              at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
              at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:458)
              at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
              at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.runSubtask(LocalContainerLauncher.java:370)
              at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.runTask(LocalContainerLauncher.java:295)
              at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.access$200(LocalContainerLauncher.java:181)
              at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler$1.run(LocalContainerLauncher.java:224)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.net.URISyntaxException: Relative path in absolute URI: file:./tmp/mapr/b79b1ef5-c8a4-4da9-a307-b4f9045c7bb9/hive_2015-10-01_11-30-46_978_7012892802177357645-1
              at java.net.URI.checkPath(URI.java:1804)
              at java.net.URI.<init>(URI.java:752)
              at org.apache.hadoop.fs.Path.initialize(Path.java:214)
              ... 42 more
      
      22257 [uber-SubtaskRunner] INFO  org.apache.hadoop.hive.ql.log.PerfLogger  - </PERFLOG method=compile start=1443688246930 end=1443688247907 duration=977 from=org.apache.hadoop.hive.ql.Driver>
      

      Attachments

        1. OOZIE-2380-1.patch
          0.9 kB
          Sergey Svynarchuk
        2. OOZIE-2380-2.patch
          1 kB
          Sergey Svynarchuk

        Issue Links

          Activity

            People

              vaifer Sergey Svynarchuk
              vaifer Sergey Svynarchuk
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: