[ 
https://issues.apache.org/jira/browse/HIVE-18907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16390960#comment-16390960
 ] 

Jason Dere commented on HIVE-18907:
-----------------------------------

Examples:
{noformat}
$ bin/hive --service fixacidkeyindex --check-only /tmp/jdere/testdir
Checking hdfs:///tmp/jdere/testdir/bucket_00000 - acid key index is invalid
Checking hdfs:///tmp/jdere/testdir/bucket_00001 - acid key index is invalid
Checking hdfs:///tmp/jdere/testdir/bucket_00002 - acid key index is invalid
Checking hdfs:///tmp/jdere/testdir/bucket_00003 - acid key index is invalid

$ bin/hive --service fixacidkeyindex --recover /tmp/jdere/testdir
Recovering hdfs:///tmp/jdere/testdir/bucket_00000
Fixed acid key index for hdfs:///tmp/jdere/testdir/bucket_00000
..

$ bin/hive --service fixacidkeyindex --check-only /tmp/jdere/testdir
Checking hdfs:///tmp/jdere/testdir/bucket_00000 - acid key index is valid
Checking hdfs:///tmp/jdere/testdir/bucket_00001 - acid key index is valid
Checking hdfs:///tmp/jdere/testdir/bucket_00002 - acid key index is valid
Checking hdfs:///tmp/jdere/testdir/bucket_00003 - acid key index is valid
{noformat}

> Create utility to fix acid key index issue from HIVE-18817
> ----------------------------------------------------------
>
>                 Key: HIVE-18907
>                 URL: https://issues.apache.org/jira/browse/HIVE-18907
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>            Priority: Major
>         Attachments: HIVE-18907.1.patch
>
>
> While HIVE-18817 will create new ORC Acid files from hitting the 
> ArrayIndexOutOfBounds issue, existing files created before HIVE-18817 will 
> still cause this issue. If there are delta directories then one way to 
> generate new files is to perform a major compaction. But this does not work 
> if there are no delta directories for the table/partition.
> Add a tool to fix the Acid ORC files directly in the case that a compaction 
> cannot be performed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to