geoip数据库更新期间出现异常org.elasticsearch.elasticsearchException

qzlgjiam  于 2023-03-12  发布在  ElasticSearch
关注(0)|答案(1)|浏览(524)

I am using elasticsearch-8.6.2 and I am getting below error when I'm trying to start the elasticsearch.bat file.
Error:
[2023-03-09T14:49:54,780][ERROR][o.e.i.g.GeoIpDownloader ] [DESKTOP-8N84PF5] exception during geoip databases updateorg.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active at org.elasticsearch.ingest.geoip@8.6.2/org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:134) at org.elasticsearch.ingest.geoip@8.6.2/org.elasticsearch.ingest.geoip.GeoIpDownloader.runDownloader(GeoIpDownloader.java:274) at org.elasticsearch.ingest.geoip@8.6.2/org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:102) at org.elasticsearch.ingest.geoip@8.6.2/org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:48) at org.elasticsearch.server@8.6.2/org.elasticsearch.persistent.NodePersistentTasksExecutor$1.doRun(NodePersistentTasksExecutor.java:42)
Trying to start eleasticsearch

8yoxcaq7

8yoxcaq71#

此错误并不意味着您的Elasticsearch不工作。
检查您的ElasticSearch状态:

curl -k -u elastic:<your_password> "https://localhost:9200/_cat/health"

如果您愿意,可以禁用geoip.downloader以消除此错误。

curl -ks -XPUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
  "persistent": { 
  "ingest.geoip.downloader.enabled" : "false"
  }
}'

参考:https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html

相关问题