【问题标题】:Attribute Index doesn't work in GeoMesa HBase属性索引在 GeoMesa HBase 中不起作用
【发布时间】:2019-10-28 21:26:22
【问题描述】:

我尝试在没有空间索引的情况下将一些数据存储在 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。但是,如果我强制它使用像geomesa-hbase export -c atlas -f OSMWayNodesTest3 -q "nodeId = 'node1'" --hints QUERY_INDEX=id 这样的 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

【问题讨论】:

    标签: hbase geomesa


    【解决方案1】:

    我在 GeoMesa JIRA 中创建了一个ticket 来跟踪问题。作为一种变通方法,如果您的架构中有日期或几何类型字段,它将正确返回查询。

    【讨论】:

      猜你喜欢
      • 2019-08-23
      • 1970-01-01
      • 1970-01-01
      • 2016-05-18
      • 2011-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多