📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当 Elasticsearch 许可证的签名格式不正确时会出现此错误。这可能是由于许可证 UID 不正确或许可证文件本身存在问题。要解决此问题,您可以尝试从 Elasticsearch 服务重新生成新的许可证文件,确保 UID 正确。或者,您可以检查许可证文件的完整性,确保它没有被篡改或损坏。如果问题仍然存在,您可能需要联系 Elasticsearch 支持部门以获取进一步的帮助。

日志上下文 #

日志 “malformed signature for license [” + builder.uid + “]” 类名是 License.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解的人参考:

try {
    byte[] signatureBytes = Base64.getDecoder().decode(builder.signature);
    ByteBuffer byteBuffer = ByteBuffer.wrap(signatureBytes);
    version = byteBuffer.getInt();
} catch (Exception e) {
    throw new ElasticsearchParseException("malformed signature for license [" + builder.uid + "]"; e);
}
// we take the absolute version; because negative versions
// mean that the license was generated by the cluster (see TrialLicense)
// and positive version means that the license was signed
if (version < 0) {