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

Multiple inserts query from the union table failed by java.lang.IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • None
    • None

    Description

      STEP 1. Configure Hive on Tez

      STEP2. Create test tables

      hive> create table t1(x int);
      hive> create table t2(x int);
      hive> create table t1_tmp(x int);
      hive> create table t2_tmp(x int);

      STEP 3. Run query

      hive> from(select x from t1 union all select x from t2)tbl insert overwrite table t1_tmp select x insert overwrite table t2_tmp select x;

      RESULT

      2016-11-30 13:50:51,610 ERROR [main]: exec.Task (TezTask.java:execute(197)) - Failed to execute tez graph.
      java.lang.IllegalArgumentException: VertexGroup must have at least 2 members
      at org.apache.tez.dag.api.VertexGroup.<init>(VertexGroup.java:77)
      at org.apache.tez.dag.api.DAG.createVertexGroup(DAG.java:177)
      at org.apache.hadoop.hive.ql.exec.tez.TezTask.build(TezTask.java:333)
      at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:169)
      at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
      at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)
      at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1635)
      at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1395)
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1208)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1035)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1025)
      at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:201)
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:153)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:364)
      at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:712)
      at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:631)
      at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:212)

      This issue doesn't happen on MR mode.

      Attachments

        1. HIVE-15440.1.patch
          1 kB
          Aleksey Vovchenko

        Activity

          People

            AleKsey Vovchenko Aleksey Vovchenko
            AleKsey Vovchenko Aleksey Vovchenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: