环境
ES版本:7.17.13
操作系统: MacOS
验证可用版本如上,图和代码是原文章里扒得。
问题
安装了很久的ES,昨天需要用到,启动了一下,结果启动报错
org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active
之前启动是没问题的
原因及解决方案
ES启动时会去更新地图的一些数据库,这里直接禁掉即可
ingest.geoip.downloader.enabled: false
解决方案:配置文件conf/elasticsearch.yml
,增加配置
ingest.geoip.downloader.enabled: false
访问http://localhost:9200/出现以下信息,说明ES服务启动成功
{
"name" : "duyanyongdeMacBook-Air.local",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "185C-etyQ7293kHZcol5tA",
"version" : {
"number" : "8.6.2",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "2d58d0f136141f03239816a4e360a8d17b6d8f29",
"build_date" : "2023-02-13T09:35:20.314882762Z",
"build_snapshot" : false,
"lucene_version" : "9.4.2",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}