【问题标题】:Cassandra 3.11.1 GeoSpatial supportCassandra 3.11.1 地理空间支持
【发布时间】:2020-04-27 01:13:27
【问题描述】:

我正在尝试使用 Cassandra 文档中的 GeoSpatial 示例:https://docs.datastax.com/en/dse/6.7/cql/cql/cql_using/search_index/queriesGeoSpatial.html

CREATE TABLE test ( id text PRIMARY KEY,  point 'PointType',  linestring 'LineStringType');

我收到错误:

SyntaxException:设置类型 PointType 时出错:找不到抽象类型类 'org.apache.cassandra.db.marshal.PointType'

我正在使用堆栈: [cqlsh 5.0.1 |卡桑德拉 3.11.1 | CQL 规范 3.4.4 |原生协议 v4]

如何解决?

【问题讨论】:

    标签: cassandra geospatial


    【解决方案1】:

    您正在查看的文档适用于 DSE 6.7,它是一种商业产品,在 Cassandra 3.11.1 上具有扩展功能。 Cassandra 3.11.1 不支持PointType。

    根据您要做什么,有许多支持 Cassandra 地理空间扩展的开源项目:

    GeoMesa

    Elassandra

    【讨论】:

    • 根据我的经验,Cassandra 上的 GeoMesa 非常重量级,会生成大量查询,使集群过载。
    猜你喜欢
    • 2013-07-06
    • 2014-05-17
    • 2018-12-03
    • 2011-06-17
    • 2016-09-14
    • 1970-01-01
    • 1970-01-01
    • 2011-04-27
    • 2023-03-20
    相关资源
    最近更新 更多