hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject adding more options to mapreduce.Export
Date Sun, 11 Apr 2010 15:07:53 GMT
Hi,
I logged two JIRAs which add options to mapreduce.Export:
https://issues.apache.org/jira/browse/HBASE-2225
https://issues.apache.org/jira/browse/HBASE-2434

Potentially there could be another option which filters rows using regex:
    // see if there is row filter
    if (args.length > 5) {
        byte [] prefix = Bytes.toBytes(args[5]);
        if (args[5].startsWith("^"))
        {
            s.setFilter(new RowFilter(CompareOp.EQUAL, new
RegexStringComparator(args[5])));
        }
        else s.setFilter(new PrefixFilter(prefix));
        System.out.println("row filter is: " + args[5]);
    }

That is 3 more options on top of existing options.

So I logged HBASE-2416 which would allow table.jsp to easily accommodate
more options.

Please comment on the approach of processing more and more command line
options for mapreduce.Export

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message