--- title: "创建汇总索引 rollupIndexName 失败 - 如何解决此 Elasticsearch 异常" date: 2026-01-01 lastmod: 2026-01-01 description: "当 Elasticsearch 无法创建汇总索引时会出现此错误,通常由于权限不足、索引名称错误或资源缺乏导致。" tags: ["汇总索引", "索引创建", "索引权限", "数据汇总"] summary: " 版本: 8.3-8.9 简要来说,当 Elasticsearch 无法创建汇总索引(rollup index)时会出现此错误。汇总索引用于汇总和存储历史数据。此错误可能是由于权限不足、索引名称不正确或资源不足导致的。要解决此问题,请确保用户具有创建索引的必要权限。检查汇总索引名称中是否包含无效字符或语法错误。同时,确保有足够的资源(如磁盘空间)可供创建新索引使用。 日志上下文 # 日志 “Failed to create rollup index [” + rollupIndexName + “]” 的类名是 TransportDownsampleAction.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的用户参考: new ElasticsearchException("Unable to index into rollup index [" + rollupIndexName + "]") ); } }; e -> deleteRollupIndex(sourceIndexName; rollupIndexName; parentTask; listener; e))); } else { listener.onFailure(new ElasticsearchException("Failed to create rollup index [" + rollupIndexName + "]")); } }; listener::onFailure)); }; listener::onFailure)); } " --- > **版本:** 8.3-8.9 简要来说,当 Elasticsearch 无法创建汇总索引(rollup index)时会出现此错误。汇总索引用于汇总和存储历史数据。此错误可能是由于权限不足、索引名称不正确或资源不足导致的。要解决此问题,请确保用户具有创建索引的必要权限。检查汇总索引名称中是否包含无效字符或语法错误。同时,确保有足够的资源(如磁盘空间)可供创建新索引使用。 ## 日志上下文 日志 "Failed to create rollup index [" + rollupIndexName + "]" 的类名是 [TransportDownsampleAction.java](https://www.geeksforgeeks.org/java-lang-class-class-java-set-1/)。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的用户参考: ```java new ElasticsearchException("Unable to index into rollup index [" + rollupIndexName + "]") ); } }; e -> deleteRollupIndex(sourceIndexName; rollupIndexName; parentTask; listener; e))); } else { listener.onFailure(new ElasticsearchException("Failed to create rollup index [" + rollupIndexName + "]")); } }; listener::onFailure)); }; listener::onFailure)); } ```