You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jason Dere (JIRA)" <ji...@apache.org> on 2018/03/08 09:22:00 UTC

[jira] [Commented] (HIVE-18907) Create utility to fix acid key index issue from HIVE-18817

    [ 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)