Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - hbase shell command : examples for QualifierFilter?


Copy link to this message
-
Re: hbase shell command : examples for QualifierFilter?
Ted Yu 2013-01-11, 18:11
Have you seen the following in
hbase-server/src/main/ruby/shell/commands/scan.rb (trunk) ?

  hbase> scan 't1', {FILTER => "(PrefixFilter ('row2') AND
    (QualifierFilter (>=, 'binary:xyz'))) AND (TimestampsFilter ( 123,
456))"}

Cheers

On Fri, Jan 11, 2013 at 9:29 AM, Shengjie Min <[EMAIL PROTECTED]> wrote:

> Hi guys,
>
> I am running the following commands in hbase shell, trying to get *
> QualifierFilter* working:
>
> import org.apache.hadoop.hbase.filter.CompareFilter
> import org.apache.hadoop.hbase.filter.SingleColumnValueFilter
> import org.apache.hadoop.hbase.filter.SubstringComparator
> import org.apache.hadoop.hbase.util.Bytes
> import org.apache.hadoop.hbase.filter.QualifierFilter
> import org.apache.hadoop.hbase.filter.BinaryComparator
>
> Got the *error* below:
>
> hbase(main):011:0>  scan 'test', { FILTER =>
> QualifierFilter.new(CompareFilter.CompareOp.GREATER, 'dummy')}
> NoMethodError: undefined method `CompareOp' for
> Java::OrgApacheHadoopHbaseFilter::CompareFilter:Class
>
> I know the 'dummy' part needs to replaced as well, can somebody share an
> example how hbase QualifierFilter works in Hbase shell.
> --
> All the best,
> Shengjie Min
>