版本: 6.8-8.9
简要来说,当Elasticsearch命令缺少"to_node"参数时会出现此错误。该参数用于指定某些操作的目标节点。要解决此问题,您可以在命令中添加"to_node"参数,或者检查命令语法以确保其正确。如果您使用脚本或应用程序生成命令,请确保其正确包含了"to_node"参数。
日志上下文 #
日志"[{}] command missing the to_node parameter"的类名是 MoveAllocationCommand.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解的用户参考:
}
if (fromNode == null) {
throw new ElasticsearchParseException("[{}] command missing the from_node parameter", NAME);
}
if (toNode == null) {
throw new ElasticsearchParseException("[{}] command missing the to_node parameter", NAME);
}
return new MoveAllocationCommand(index, shardId, fromNode, toNode);
} @Override





