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

After setting UpdateInputAccessTimeHook query fail with Table Not Found.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 4.0.0-alpha-1
    • Hive
    • None

    Description

       select from_unixtime(1540495168); 
       set hive.exec.pre.hooks=org.apache.hadoop.hive.ql.hooks.ATSHook,org.apache.hadoop.hive.ql.hooks.UpdateInputAccessTimeHook$PreExec;
       select from_unixtime(1540495168); 
      

      the second select fail with following exception

      ERROR ql.Driver: FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.InvalidTableException(Table not found _dummy_table)
      org.apache.hadoop.hive.ql.metadata.InvalidTableException: Table not found _dummy_table
          at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1217)
          at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1168)
          at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1155)
          at org.apache.hadoop.hive.ql.hooks.UpdateInputAccessTimeHook$PreExec.run(UpdateInputAccessTimeHook.java:67)
          at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1444)
          at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1294)
          at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1161)
          at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1156)
          at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:197)
          at org.apache.hive.service.cli.operation.SQLOperation.access$300(SQLOperation.java:76)
          at org.apache.hive.service.cli.operation.SQLOperation$2$1.run(SQLOperation.java:255)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAs(Subject.java:422)
          at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
          at org.apache.hive.service.cli.operation.SQLOperation$2.run(SQLOperation.java:266)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      

      Attachments

        1. HIVE-20848.01.patch
          0.8 kB
          Rajkumar Singh
        2. HIVE-20848.patch
          0.8 kB
          Rajkumar Singh

        Activity

          People

            Rajkumar Singh Rajkumar Singh
            Rajkumar Singh Rajkumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: