exception during geoip databases updateorg.elasticsearch.ElasticsearchException

huangapple go评论55阅读模式
英文:

exception during geoip databases updateorg.elasticsearch.ElasticsearchException

问题

我正在使用 elasticsearch-8.6.2,当我尝试启动 elasticsearch.bat 文件时,出现以下错误:

错误:

[2023-03-09T14:49:54,780][ERROR][o.e.i.g.GeoIpDownloader ] [DESKTOP-8N84PF5] 在更新 geoip 数据库时出现异常 org.elasticsearch.ElasticsearchException: [.geoip_databases] 索引的并非所有主要分片都处于活动状态
at org.elasticsearch.ingest.geoip@8.6.2/org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:134)
at org.elasticsearch.ingest.geoip@8.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)

尝试启动 Elasticsearch。

英文:

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

答案1

得分: 2

这个错误并不意味着您的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

英文:

This error is not mean your Elasticsearch is not working.

Check your elasticsearch status:

curl -k -u elastic:&lt;your_password&gt; &quot;https://localhost:9200/_cat/health&quot; 

If you want you can disable geoip.downloader to get rid of this error.

curl -ks -XPUT &quot;http://localhost:9200/_cluster/settings&quot; -H &#39;Content-Type: application/json&#39; -d&#39;
{
  &quot;persistent&quot;: { 
  &quot;ingest.geoip.downloader.enabled&quot; : &quot;false&quot;
  }
}&#39;

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

huangapple
  • 本文由 发表于 2023年3月9日 17:38:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/75682752.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定