版本: 6.8-8.9
简而言之,当执行Elasticsearch命令时未指定必需的’node’参数时,会发生此错误。该参数对于标识应在哪个节点上执行操作是必要的。要解决此问题,您可以直接在命令中指定node参数,或者在Elasticsearch配置中设置默认节点。此外,请确保您指定的节点存在且可访问。
日志上下文 #
日志"[{}] command missing the node parameter"的类名是 CancelAllocationCommand.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解上下文的人使用:
}
if (shardId == -1) {
throw new ElasticsearchParseException("[{}] command missing the shard parameter", NAME);
}
if (nodeId == null) {
throw new ElasticsearchParseException("[{}] command missing the node parameter", NAME);
}
return new CancelAllocationCommand(index, shardId, nodeId, allowPrimary);
} @Override





