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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: Indexing
    • Labels:
      None
    • Target Version/s:

      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

            • Assignee:
              svetozari Svetozar Ivanov
              Reporter:
              svetozari Svetozar Ivanov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: