hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: hbase shell command : examples for QualifierFilter?
Date Fri, 11 Jan 2013 18:11:12 GMT
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 <kelvin.msj@gmail.com> 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
>

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