Mycat查询时出现:Error Code: 1064. can't find any valid datanode

Posted Jim

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mycat查询时出现:Error Code: 1064. can't find any valid datanode相关的知识,希望对你有一定的参考价值。

说明:这个错误是查询时条件字段超过了范围导致的。

解释:

为什么会出现范围问题?

一般在mysql查询时不会因为字段的值超过了范围而导致的,但是在Mycat中却不是这样认为的,Mycat是由于采用的分片的机制,而每个分片采用枚举的算法,然后根据索引进行分片,然后这些枚举会定义一定的范围,所以当这个查询的值大于这个范围就出现找不到的情况了。

这个解释好理解,但不一定正确,只是做为一个参考。

 

参考:

https://www.cnblogs.com/ivictor/archive/2016/01/25/5155123.html

http://blog.csdn.net/flashflight/article/details/52348323

以上是关于Mycat查询时出现:Error Code: 1064. can't find any valid datanode的主要内容,如果未能解决你的问题,请参考以下文章

在 node.js 中运行 exec 时出现 error.code 139

安装andriod studio时出现Internal error. Please report to https://code.google.com/p/an

BindingGenerator - 构建时出现语法错误

使用mycat时出现Sharding column can't be updated错误

解决ubuntu使用命令sudo apt -get install 安装东西时出现"E: Sub-process /usr/bin/dpkg returned an error code (

编译时出现 GL3W 错误