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

Hive cli silently fails to create index

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.7.0
    • Fix Version/s: None
    • Component/s: CLI, Indexing
    • Labels:

      Description

      Hive CLI reports 'OK' to index creation, but no index is created as confirmed by later 'NoSuchObjectException' when later issuing index rebuild:

      [user@host dir]$ hive
      Hive history file=/tmp/user/hive_job_log_user_201203071111_11111111111.txt
      hive> CREATE INDEX X ON TABLE Foo(startTime) as 'COMPACT' WITH DEFERRED REBUILD;
      OK
      Time taken: 2.353 seconds
      hive> SHOW INDEXES ON Foo;
      OK
      Time taken: 0.182 seconds
      hive> ALTER INDEX X ON Foo REBUILD;
      FAILED: Error in semantic analysis: org.apache.hadoop.hive.ql.metadata.HiveException: NoSuchObjectException(message:default.Foo index=X not found)
      hive>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                smark Mark Schnegelberger
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: