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 19:42:13 UTC
[jira] Commented: (HBASE-3255) Allow Export tool to choose subset
of rows
[ 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.