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

Handle missing hive.acid.key.index in the fixacidkeyindex utility

    XMLWordPrintableJSON

Details

    Description

      There is a utility in hive which can validate/fix corrupted hive.acid.key.index:

      hive --service fixacidkeyindex $orcfilepath
      

      At the moment the utility throws a NPE if the hive.acid.key.index metadata entry is missing:

      ERROR checking /hive-dev-box/multistripe_ko_acid.orc
      java.lang.NullPointerException
              at org.apache.hadoop.hive.ql.io.orc.FixAcidKeyIndex.validate(FixAcidKeyIndex.java:183)
              at org.apache.hadoop.hive.ql.io.orc.FixAcidKeyIndex.checkFile(FixAcidKeyIndex.java:147)
              at org.apache.hadoop.hive.ql.io.orc.FixAcidKeyIndex.checkFiles(FixAcidKeyIndex.java:130)
              at org.apache.hadoop.hive.ql.io.orc.FixAcidKeyIndex.main(FixAcidKeyIndex.java:106)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.hadoop.util.RunJar.run(RunJar.java:308)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:222)
      

      The aim of this ticket is to handle such case in order to support re-generating this metadata entry even when it is missing.

      Attachments

        Issue Links

          Activity

            People

              asolimando Alessandro Solimando
              asolimando Alessandro Solimando
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h