It should work the same... your code looks fine - just make sure you
call 'close' on the feature iterator once you're done with it. How
long did you let it hang for? Possibly it is still running scans
against HBase, but they just aren't returning any rows.
Do you need to use GeoMesa 1.3.1 for any reason? We've made several
bug fixes related to HBase scans since then, upgrading to 1.3.4 may
fix your problem (although we haven't seen this particular issue
before).
thanks,
Emilio
On 11/21/2017 07:17 PM, Jason Koh
wrote:
Sure I will report any results once we have.
Before then, I faced an irregular behavior after the
change. The query result iterator's "hasNext()" does not
return.
The test configuration is
A Ubuntu 16.04 VM with 3 cores and 6GB RAM.
HBase 1.2.6 standalone and Geomesa. 1.3.1
I was iterating the query result like this.
```java
FeatureIterature iter = featureSource.getFeatures(query).features();
while (iter.hasNext() {
Feature feat = iter.next();
// doing something with feat.
}
```
I observed that it properly returned all the data
for the query, and then it's held at hasNext(). The
dataset just has a two Points and the query BBOX is
fairly small. It runs properly if I use "Point" as a
default geometry type, but stops with "Geometry" as
a default geometry type.
Was there something that I should've specified
further?
Thanks!
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-users
|