【问题标题】:Error When Creating Search Index in Cassandra Enterprise (DSE)在 Cassandra Enterprise (DSE) 中创建搜索索引时出错
【发布时间】:2020-09-18 17:55:34
【问题描述】:

我正在尝试在 DSE 6.8 中的表上创建搜索索引。这是我在测试键空间中的表:

CREATE TABLE users (
   username text,
   first_name text,
   last_name text,
   password text,
   email text,
   last_access timeuuid,
   PRIMARY KEY(username));

我试过这个查询:

CREATE SEARCH INDEX ON test.users;

这是回应:

InvalidRequest: Error from server: code=2200 [Invalid query] message="Search statements are not supported on this node"

我认为必须在某些文件中更改某些内容以使 DSE 支持搜索语句。我已经将/etc/default/dse 中的SOLR_ENABLED 设置为1。我对此完全陌生,我不知道我的桌子是否有问题或其他任何问题。

任何人都可以提出可能导致此错误的原因吗?提前致谢。

【问题讨论】:

  • 更改后是否重启过DSE?

标签: indexing solr cassandra datastax-enterprise


【解决方案1】:

正如错误消息所示,您只能在以搜索模式运行的 DSE 节点上create a Search index

通过运行以下命令检查节点的工作负载。它会告诉你节点是在纯 Cassandra 模式还是 Search 模式下运行。

$ dsetool status

如果你安装了DSE using the binary tarball,它就不会使用/etc/default/dse。取而代之的是 start DSE as a standalone process-s 标志以在搜索模式下启动它:

$ dse cassandra -s

干杯!

【讨论】:

    猜你喜欢
    • 2017-11-25
    • 2020-12-20
    • 2020-07-28
    • 2020-08-16
    • 1970-01-01
    • 2014-09-01
    • 2017-03-10
    • 2016-09-21
    • 2013-09-30
    相关资源
    最近更新 更多