[英]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 搜索,它只能回答一致性级别为ONE
或LOCAL_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.