属性索引在geomesa hbase中不起作用

y3bcpkx1  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(387)

我尝试在geomesa hbase集群中存储一些没有空间索引的数据。表架构如下所示。但是,我无法使用属性索引(在本例中是“nodeid”列)查询数据。我使用的导出命令是: geomesa-hbase export -c atlas -f OSMWayNodesTest3 -m 10 -q "nodeId='node1'" 以及 geomesa-hbase export -c atlas -f OSMWayNodesTest3 -q "nodeId = 'node1'" --hints QUERY_INDEX=attr:8:nodeId . 但是,如果我强制使用id索引,我就能够获得数据 geomesa-hbase export -c atlas -f OSMWayNodesTest3 -q "nodeId = 'node1'" --hints QUERY_INDEX=id . 所以属性索引在这里不起作用,但是id索引起作用。
表架构

INFO  Describing attributes of feature 'OSMWayNodesTest3'
wayId             | String
nodeId            | String (Attribute indexed)
serializerVersion | String
featurePayload    | String

User data:
  geomesa.ignore.dtg | true
  geomesa.indices    | id:4:3:,attr:8:3:nodeId

表中的数据

[hadoop@ip-10-0-17-152 ~]$ geomesa-hbase export -c atlas -f OSMWayNodesTest3 -m 2
id,wayId:String,nodeId:String,serializerVersion:String,featurePayload:String
64d9dc80973fa2e5174525c2bd8fc7f2,way2,node1,geojson,payload
8a87e576b1a1c03bc3d78caaef5b9fd0,way2,node2,geojson,payload
INFO  Feature export complete to standard out in 12825ms for 2 features
57hvy0tb

57hvy0tb1#

我在geomesa jira中创建了一张跟踪问题的罚单。作为一种解决方法,如果模式中有日期或几何体类型字段,它将正确返回查询。

相关问题