hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Przemek <prze...@subrecord.org>
Subject scanning with custom filter problem
Date Sat, 11 Oct 2008 06:23:19 GMT
Hi all,

Scanning works for me when I don't provide my filter. If I do I have
strange behavior, see the code:

HTable table = new HTable("foo");
for (Object row : table.getScanner(Bytes 				.toByteArrays(new String[]
{ "foo:x" }),					HConstants.EMPTY_START_ROW, System.currentTimeMillis(),
					new MyFilter())) {
	...
}

What I have noticed is that only write() method is invoked on my filter
a couple of times and then an exception is thrown:

ERROR 08:20:19 [org.subrecord.repo.storage.MyScanner (57):scan]: Error
scanning table : any
org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to
contact region server 127.0.0.1:2167 for region any,,1223705009718, row
'', but failed after 10 attempts.
Exceptions:
java.io.IOException: Call failed on local exception
java.io.IOException: Call failed on local exception
java.io.IOException: Call failed on local exception

and on the console:

2008-10-11 08:20:19,468 INFO org.apache.hadoop.ipc.Server: IPC Server
handler 6 on 2167, call next(-1, 30) from 127.0.0.1:2303: error:
org.apache.hado
op.hbase.UnknownScannerException: Name: -1
org.apache.hadoop.hbase.UnknownScannerException: Name: -1
        at
org.apache.hadoop.hbase.regionserver.HRegionServer.next(HRegionServer.java:1079)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.hadoop.hbase.ipc.HbaseRPC$Server.call(HbaseRPC.java:622)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:888)
2008-10-11 08:20:22,500 INFO org.apache.hadoop.hbase.master.BaseScanner:
RegionManager.metaScanner scanning meta region {regionname: .META.,,1,
startK

HBase - build from trunk
Setup - 'local' mode

What's wrong with that?

-- 
SubRecord - Enterprise Aspects Stack
http://subrecord.org

Mime
View raw message