hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricky Saltzer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5525) Truncate and preserve region boundaries option
Date Thu, 04 Apr 2013 15:55:17 GMT

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

Ricky Saltzer commented on HBASE-5525:
--------------------------------------

Hey Guys -

Is this patch using a deprecated API call? I was under the impression that getRegionsInfo()
was deprecated and we should now use getRegionLocations()

Line in question
{noformat}
splits = h_table.getRegionsInfo().keys().map{|i| Bytes.toString(i.getStartKey)}.delete_if{|k|
k == ""}.to_java :String
{noformat}

Deprecated here -> https://hbase.apache.org/0.94/apidocs/org/apache/hadoop/hbase/client/HTable.html#getRegionsInfo()


   Missing here -> https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html




                
> Truncate and preserve region boundaries option
> ----------------------------------------------
>
>                 Key: HBASE-5525
>                 URL: https://issues.apache.org/jira/browse/HBASE-5525
>             Project: HBase
>          Issue Type: New Feature
>    Affects Versions: 0.96.0
>            Reporter: Jean-Daniel Cryans
>            Assignee: Kevin Odell
>              Labels: newbie, noob
>             Fix For: 0.95.1
>
>         Attachments: HBASE-5525.patch, HBASE-5525-v1-0.94.patch, HBASE-5525-v1-0.95.patch,
HBASE-5525-v1-trunk.patch, HBASE-5525-v1-trunk.patch
>
>
> A tool that would be useful for testing (and maybe in prod too) would be a truncate option
to keep the current region boundaries. Right now what you have to do is completely kill the
table and recreate it with the correct regions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message