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

hive on tez execution error due to set hive.aux.jars.path to hdfs://

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1, 3.2.0, 4.0.0
    • 3.2.0, 4.0.0-alpha-1
    • Tez
    • None
    • hadoop 2.6.5

      hive 2.2.1

      tez 0.8.4

    Description

      When set the properties hive.aux.jars.path=hdfs://mycluster/apps/hive/lib/guava.jar

      and hive.execution.engine=tez; execute any query will fail with below error log:

      exec.Task: Failed to execute tez graph.
      java.lang.IllegalArgumentException: Wrong FS: hdfs://mycluster/apps/hive/lib/guava.jar, expected: file:///
      at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:645) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:80) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:529) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:747) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:524) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:409) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:337) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1905) ~[hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeResource(DagUtils.java:1007) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.DagUtils.addTempResources(DagUtils.java:902) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeTempFilesFromConf(DagUtils.java:845) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.refreshLocalResourcesFromConf(TezSessionState.java:466) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.openInternal(TezSessionState.java:252) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolManager$TezSessionPoolSession.openInternal(TezSessionPoolManager.java:622) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:206) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.TezTask.updateSession(TezTask.java:283) ~[hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:155) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:197) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2073) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1744) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1453) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1171) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1161) [hive-exec-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:232) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:335) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:429) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:445) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:151) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:776) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714) [hive-cli-2.1.1.jar:2.1.1]
      at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641) [hive-cli-2.1.1.jar:2.1.1]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
      at org.apache.hadoop.util.RunJar.run(RunJar.java:221) [hadoop-common-2.6.0.jar:?]
      at org.apache.hadoop.util.RunJar.main(RunJar.java:136) [hadoop-common-2.6.0.jar:?]

      Attachments

        1. HIVE-18871.8.patch
          1 kB
          Prasanth Jayachandran
        2. HIVE-18871.7.patch
          1 kB
          Prasanth Jayachandran
        3. HIVE-18871.6.patch
          1 kB
          Prasanth Jayachandran
        4. HIVE-18871.5.patch
          1 kB
          Prasanth Jayachandran
        5. HIVE-18871.4.patch
          1 kB
          zhuwei
        6. HIVE-18871.3.patch
          1 kB
          zhuwei
        7. HIVE-18871.2.patch
          1 kB
          zhuwei
        8. HIVE-18871.1.patch
          1 kB
          zhuwei

        Activity

          People

            qunyan zhuwei
            qunyan zhuwei
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: