英文:
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:<your_password> "https://localhost:9200/_cat/health"
If you want you can disable geoip.downloader
to get rid of this error.
curl -ks -XPUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
"persistent": {
"ingest.geoip.downloader.enabled" : "false"
}
}'
Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论