在HBase shell中使用ValueFilter会引发RetriesHaustedException,然后引发针对ValueFilter的未定义方法write

在HBase shell中使用ValueFilter会引发RetriesHaustedException,然后引发针对ValueFilter的未定义方法write,hbase,Hbase,我是Hbase新手,使用0.90.4-cdh3u3版。我试图执行一些查询,以便更好地理解shell中的HBase查询语法。我创建了一个表,其中包含了不同员工的工作时间。表中的一行如下所示: hbase> scan 'Employees', {LIMIT=>1} ROW COLUMN+CELL Alice column=Day:Friday, timestamp=13409038

我是Hbase新手,使用0.90.4-cdh3u3版。我试图执行一些查询,以便更好地理解shell中的HBase查询语法。我创建了一个表,其中包含了不同员工的工作时间。表中的一行如下所示:

hbase> scan 'Employees', {LIMIT=>1}
ROW                             COLUMN+CELL
 Alice                          column=Day:Friday, timestamp=1340903869525, value=Hours:2
 Alice                          column=Day:Monday, timestamp=1340903803699, value=Hours:4
 Alice                          column=Day:Thursday, timestamp=1340903855735, value=Hours:8
 Alice                          column=Day:Tuesday, timestamp=1340903821034, value=Hours:7
 Alice                          column=Day:Wednesday, timestamp=1340903836330, value=Hours:2
我想要一个查询,显示哪些员工工作8小时,哪些天。所以,我想扫描所有的行并查找任何值等于8的列。我尝试使用ValueFilter,因为我看到它扫描所有列,而不指定它们。我已经尝试了我的查询的几个格式副本,它们都给出了相同的错误

scan 'Employees', {LIMIT=>2, FILTER=>"ValueFilter(=, 'binary:8')"}
ROW                             COLUMN+CELL

ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to contact region server basecloud02.noviidesign.com:60020 for region Employees,,1340903535790.86c7a1240ef6c8c499cba43555af2af3., row '', but failed after 7 attempts.
Exceptions:
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `write' for "ValueFilter(=, 'binary:8')":String
(this execption is repeated for each row)
我不知道是我的查询不正确,还是配置中有什么错误。。。
感谢

考虑到在提供的筛选器上调用“write”方法(这是所有filter-extends Writable-的实现都需要实现的),您正在使用的版本似乎不支持,这将允许从字符串构建筛选器(通过ParseFilter.parseFilterString).

能否确认您的区域服务器正在运行?以下内容适用于hbase 0.94扫描'Employees',{LIMIT=>2,FILTER=>“ValueFilter=,'binary:Hours:8'”}