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

Hive Query Fail with MetaException(message:org.datanucleus.exceptions.NucleusDataStoreException: Size request failed

    XMLWordPrintableJSON

Details

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

    Description

      We have a customer who is on Hive 0.13 and the queries seem to be failing with exception:

      2016-08-30 00:22:58,965 ERROR [main]: metadata.Hive
      (Hive.java:getPartition(1619)) -
      MetaException(message:org.datanucleus.exceptions.NucleusDataStoreException:
      Size request failed : SELECT COUNT(*) FROM `SORT_COLS` THIS WHERE
      THIS.`SD_ID`=? AND THIS.`INTEGER_IDX`>=0)
          at
      org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_partition_with_auth_result$get_partition_with_auth_resultStandardScheme.read(ThriftHiveMetastore.java:54171)
          at
      org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_partition_with_auth_result$get_partition_with_auth_resultStandardScheme.read(ThriftHiveMetastore.java:54148)
          at
      org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_partition_with_auth_result.read(ThriftHiveMetastore.java:54079)
          at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
          at
      org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_partition_with_auth(ThriftHiveMetastore.java:1689)
          at
      org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_partition_with_auth(ThriftHiveMetastore.java:1672)
          at
      org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getPartitionWithAuthInfo(HiveMetaStoreClient.java:1003)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at
      org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:89)
          at com.sun.proxy.$Proxy9.getPartitionWithAuthInfo(Unknown Source)
          at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:1611)
          at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:1565)
          at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:370)
          at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:153)
          at
      org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)
          at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1508)
          at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1275)
          at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1093)
          at org.apache.hadoop.hive.ql.Driver.run(Driver.java:916)
          at org.apache.hadoop.hive.ql.Driver.run(Driver.java:906)
          at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:268)
          at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:220)
          at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:423)
          at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:359)
          at org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:456)
          at org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:466)
          at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:748)
          at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:686)
          at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)
          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.hadoop.util.RunJar.main(RunJar.java:212)
      

      It is similar JIRA for Hive 0.13: https://issues.apache.org/jira/browse/HIVE-8766

      I suppose it's the similar issues because of both issues related to hive metastore performance, can occur when metastore is overloaded and can throw different exceptions

      Attachments

        1. HIVE-14696.1.patch
          2 kB
          Oleksiy Sayankin

        Issue Links

          Activity

            People

              osayankin Oleksiy Sayankin
              osayankin Oleksiy Sayankin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: