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

Reply via email to