简体   繁体   English

不支持的一致性级别:LOCAL_QUORUM。 支持的搜索一致性级别为:ONE、LOCAL_ONE

[英]Unsupported consistency level: LOCAL_QUORUM. Supported consistency levels for Search are: ONE, LOCAL_ONE

I faced an issue when using cqlsh to query on dse 6.7.我在使用 cqlsh 查询 dse 6.7 时遇到了一个问题。

Invalid Request: Error from server: code=2200 [Invalid query] message="Unsupported consistency level: LOCAL_QUORUM. Supported consistency levels for Search are: ONE, LOCAL_ONE".

My query is very simple is:我的查询很简单:

Query :询问 :

select * from esc shipment . shipment search where shipper id like '1334';

I spent a lot of time to google but I did not find any use case same same my case.我花了很多时间去谷歌,但我没有找到任何与我的情况相同的用例。

Could anyone tell me the main reason and how to fix this issue.谁能告诉我主要原因以及如何解决这个问题。 I'm a very beginner.我是一个非常初学者。

The problem is following - you're running your query with LIKE operator on the table that has DSE Search enabled.问题如下 - 您在启用了 DSE 搜索的表上使用LIKE运算符运行查询。 Because CQL doesn't have LIKE operator, this query is offloaded to the DSE Search that is able to answer queries only with consistency level ONE or LOCAL_ONE (as it's pointed in the error - it's a known limitation of DSE Search).因为 CQL 没有LIKE运算符,所以这个查询被卸载到 DSE 搜索,它只能回答一致性级别为ONELOCAL_ONE查询(因为它在错误中指出 - 这是 DSE 搜索的已知限制)。

You need to change consistency level with the cqlsh command CONSISTENCY , lie this:您需要更改与cqlsh命令一致性水平一致性,这个谎言:

CONSISTENCY LOCAL_ONE

and then execute the query again.然后再次执行查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 一致性 LOCAL_ONE 的 SIMPLE 写入查询期间的 Cassandra 超时 - Cassandra timeout during SIMPLE write query at consistency LOCAL_ONE 在一致性LOCAL_ONE读取查询期间Cassandra失败(需要1个响应,但只有0个副本响应,1个失败) - Cassandra failure during read query at consistency LOCAL_ONE (1 responses were required but only 0 replica responded, 1 failed) 在Datastax驱动程序中使用LOCAL_QUORUM一致性级别 - Usage of the LOCAL_QUORUM consistency level in Datastax driver 一致性为LOCAL_QUORUM的写查询期间,Cassandra失败 - Cassandra failure during write query at consistency LOCAL_QUORUM Cassandra datastax一致性级别问题 - Cassandra datastax consistency level issue spring-data-cassandra设置一致性级别 - spring-data-cassandra set consistency level 语句具有一致性级别TWO定义时使用的一致性级别ALL - Consistency level ALL used while statement has consistency level TWO defined 将线程级局部变量从一个 class 传递到另一个 - Passing thread level local variable from one class to another 当应用程序中存在一个生产者和多个消费者时,apache kafka如何处理一致性 - How apache kafka handles consistency when one producer and multiple consumers exist in application 如何使用 Cassandra Java 驱动程序为所有查询设置一致性级别? - How to set consistency level for all queries using Cassandra Java Driver?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM