Support Questions

Find answers, ask questions, and share your expertise

Error with Hive Tez Jobs

New Contributor

We created a Hive external table mapping to Hbase, and when I query it using select, it reports following errors. Once I switch back to "hive.execution.engine=mr", the problem gone and it's working fine.( I am using GCP Dataproc single cluster. )

2022-04-14 02:44:26,587 ERROR [c50cc557-0b28-4d31-80e9-8eae45cd1499 main] exec.Task: Failed to execute tez graph.
java.lang.IndexOutOfBoundsException: Index: 12, Size: 12
    at java.util.ArrayList.rangeCheck(
    at java.util.ArrayList.get(
    at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.ensureLocalResources(
    at org.apache.hadoop.hive.ql.exec.tez.TezTask.ensureSessionHasResources(
    at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(
    at org.apache.hadoop.hive.ql.exec.Task.executeTask(
    at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(
    at org.apache.hadoop.hive.ql.Driver.launchTask(
    at org.apache.hadoop.hive.ql.Driver.execute(
    at org.apache.hadoop.hive.ql.Driver.runInternal(
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(
    at org.apache.hadoop.hive.cli.CliDriver.processLine(
    at org.apache.hadoop.hive.cli.CliDriver.executeDriver(
    at org.apache.hadoop.hive.cli.CliDriver.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.hadoop.util.RunJar.main(


Please let know how to resolve the issue as we are not able to proceed further


@Karthik_076 What version you are using? There was a bug in HDP which can be workaround by Removing auxlib from all the nodes and copying phoenix jar to /usr/hdp/

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.