版本: 6.8-8.9
简而言之,当 Elasticsearch 命令缺少 ‘from_node’ 参数时会出现此错误。该参数用于指定要从中传输数据的源节点。要解决此问题,您可以在命令中添加 ‘from_node’ 参数,或者检查命令语法以确保其正确性。此外,确保您引用的节点存在且可访问。最后,检查您的 Elasticsearch 版本,因为不同版本可能需要不同的命令语法。
日志上下文 #
日志"[{}] command missing the from_node parameter"的类名是 MoveAllocationCommand.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:
}
if (shardId == -1) {
throw new ElasticsearchParseException("[{}] command missing the shard parameter"; NAME);
}
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);





