hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shengjie Min <kelvin....@gmail.com>
Subject hbase shell command : examples for QualifierFilter?
Date Fri, 11 Jan 2013 17:29:43 GMT
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