You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2010/11/21 16:51:13 UTC

[jira] Created: (HBASE-3255) Allow Export tool to choose subset of rows

Allow Export tool to choose subset of rows
------------------------------------------

                 Key: HBASE-3255
                 URL: https://issues.apache.org/jira/browse/HBASE-3255
             Project: HBase
          Issue Type: Improvement
          Components: util
    Affects Versions: 0.20.6
            Reporter: Ted Yu


org.apache.hadoop.hbase.mapreduce.Export should allow user to specify a subset of rows.

This capability would help develop solution for problem which produces unwanted rows (in .META. table e.g.) that must be deleted.
One such case is https://issues.apache.org/jira/browse/HBASE-3251
We can export the dangling row(s) from .META., delete it and later import the row(s) to (another) hbase instance.

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


[jira] Commented: (HBASE-3255) Allow Export tool to choose subset of rows

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934331#action_12934331 ] 

Ted Yu commented on HBASE-3255:
-------------------------------

I use the following code in Export.createSubmittableJob():
{code}
    if (args.length > 5) {
    	// to select rows that match regex, such as "pkgindex.+" 
    	Filter f = new RowFilter(CompareOp.EQUAL,
    			new RegexStringComparator(args[5]));
    	s.setFilter(f);
    }
{code}

> Allow Export tool to choose subset of rows
> ------------------------------------------
>
>                 Key: HBASE-3255
>                 URL: https://issues.apache.org/jira/browse/HBASE-3255
>             Project: HBase
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.20.6
>            Reporter: Ted Yu
>
> org.apache.hadoop.hbase.mapreduce.Export should allow user to specify a subset of rows.
> This capability would help develop solution for problem which produces unwanted rows (in .META. table e.g.) that must be deleted.
> One such case is https://issues.apache.org/jira/browse/HBASE-3251
> We can export the dangling row(s) from .META., delete it and later import the row(s) to (another) hbase instance.

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


[jira] Commented: (HBASE-3255) Allow Export tool to choose subset of rows

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934339#action_12934339 ] 

Ted Yu commented on HBASE-3255:
-------------------------------

org.apache.hadoop.hbase.mapreduce.Import should provide capability to transform each row before writing into target hbase instance.
This is useful to reconstruct the scenario of HBASE-3251 without disrupting normal operations to the table which was broken but later created.

> Allow Export tool to choose subset of rows
> ------------------------------------------
>
>                 Key: HBASE-3255
>                 URL: https://issues.apache.org/jira/browse/HBASE-3255
>             Project: HBase
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.20.6
>            Reporter: Ted Yu
>
> org.apache.hadoop.hbase.mapreduce.Export should allow user to specify a subset of rows.
> This capability would help develop solution for problem which produces unwanted rows (in .META. table e.g.) that must be deleted.
> One such case is https://issues.apache.org/jira/browse/HBASE-3251
> We can export the dangling row(s) from .META., delete it and later import the row(s) to (another) hbase instance.

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


[jira] Commented: (HBASE-3255) Allow Export tool to choose subset of rows

Posted by "Lars George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934436#action_12934436 ] 

Lars George commented on HBASE-3255:
------------------------------------

Hi Ted, 

Isn't this a dupe from your HBASE-2495? And for the change of Import please create a new JIRA with the details on what you suggest please.

Lars

> Allow Export tool to choose subset of rows
> ------------------------------------------
>
>                 Key: HBASE-3255
>                 URL: https://issues.apache.org/jira/browse/HBASE-3255
>             Project: HBase
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.20.6
>            Reporter: Ted Yu
>
> org.apache.hadoop.hbase.mapreduce.Export should allow user to specify a subset of rows.
> This capability would help develop solution for problem which produces unwanted rows (in .META. table e.g.) that must be deleted.
> One such case is https://issues.apache.org/jira/browse/HBASE-3251
> We can export the dangling row(s) from .META., delete it and later import the row(s) to (another) hbase instance.

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