hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clint Morgan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1726) Migration to 0.20 looses index information from HTableDescriptor
Date Fri, 31 Jul 2009 21:30:14 GMT

    [ https://issues.apache.org/jira/browse/HBASE-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737721#action_12737721
] 

Clint Morgan commented on HBASE-1726:
-------------------------------------

To get this migration to work. I need to get a reference to the old HTD which has the indexes.


Digging around a bit, I don't see where the old HTD's are migrated to the new HTD format (which
droppes the indexes stuff). Where does this happen? Wouldn't we need a copy of the old HTD
to read in the old HTD's bytes. 

For my migration, I wrote/ran it against 0.19. Go through all tables, if they have indexes,
move that info into the HTD.values, then HBaseAdmin.modifyTable to save the HTD. After that,
do normal 0.20 migration. Then the migrated indexes worked. Nothing to migrate to get THBase
to work.

> Migration to 0.20 looses index information from HTableDescriptor
> ----------------------------------------------------------------
>
>                 Key: HBASE-1726
>                 URL: https://issues.apache.org/jira/browse/HBASE-1726
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: contrib
>            Reporter: Clint Morgan
>             Fix For: 0.20.0
>
>
> In 0.19 index info was stored as a private field, and written specially in the Writable
impl of HTD. In 0.20 it is stored in the general values map under the key "INDEXES". So migration
needs to read in the old HTD format, and store the indexes in the values map. I wrote a quick
standalone thing to do this. Can someone point me where to plug this into general migration
process?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message