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

Invalid index handler in org.apache.hadoop.hive.ql.index.HiveIndex class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Indexing
    • None

    Description

      Class org.apache.hadoop.hive.ql.index.HiveIndex has invalid handler name 'org.apache.hadoop.hive.ql.AggregateIndexHandler'. The actual FQ class name is 'org.apache.hadoop.hive.ql.index.AggregateIndexHandler'

        public static enum IndexType {
          AGGREGATE_TABLE("aggregate", "org.apache.hadoop.hive.ql.AggregateIndexHandler"),
          COMPACT_SUMMARY_TABLE("compact", "org.apache.hadoop.hive.ql.index.compact.CompactIndexHandler"),
          BITMAP_TABLE("bitmap","org.apache.hadoop.hive.ql.index.bitmap.BitmapIndexHandler");
      
          private IndexType(String indexType, String className) {
            indexTypeName = indexType;
            this.handlerClsName = className;
          }
      
          private final String indexTypeName;
          private final String handlerClsName;
      
          public String getName() {
            return indexTypeName;
          }
      
          public String getHandlerClsName() {
            return handlerClsName;
          }
        }
        
      

      Because all of the above statement like 'SHOW INDEXES ON MY_TABLE' doesn't work in case of configured 'org.apache.hadoop.hive.ql.index.AggregateIndexHandler' as index handler. In hive server log is observed java.lang.NullPointerException.

      Attachments

        1. HIVE-13844.patch
          2 kB
          Svetozar Ivanov

        Activity

          People

            svetozari Svetozar Ivanov
            svetozari Svetozar Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: