刷新 elasticsearch 索引报错:create index fail

99 阅读1分钟

刷新 elasticsearch 索引报错:

create index fail - InvalidAliasNameException[Invaid alias name ]an index exists with the same name as alias

image.png

问题原因:刷新 es 索引时索引名称重复

解决方案:删掉对应索引

GET host_cpu

DELETE host_cpu_d

DELETE host_cpu_0

DELETE host_cpu