본문 바로가기

Dev/ElasticSearch

org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active[Feat. 8.3.x]

728x90
반응형

 

엘라스틱 서치를 8.3.3 버전을 윈도우에서 실행 하는데 오류가 나고 있었다..

 

처음 실행 했을때 안난 에러가 다시 설치 후 실행하니 에러가....

 

org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active
        at org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:134) ~[ingest-geoip-8.3.3.jar:8.3.3]
        at org.elasticsearch.ingest.geoip.GeoIpDownloader.runDownloader(GeoIpDownloader.java:274) [ingest-geoip-8.3.3.jar:8.3.3]
        at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:102) [ingest-geoip-8.3.3.jar:8.3.3]
        at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:48) [ingest-geoip-8.3.3.jar:8.3.3]
        at org.elasticsearch.persistent.NodePersistentTasksExecutor$1.doRun(NodePersistentTasksExecutor.java:42) [elasticsearch-8.3.3.jar:?]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:769) [elasticsearch-8.3.3.jar:?]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.3.3.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]

 

해결 방법으로는 설치된 디렉토리에서 / config 이동 후 elasticsearch.yml 파일을 수정하면 된다.

설치 디텍토리 /elasticsearch-8.3.3/config/elasticsearch.yml

아래의 내용을 확인 후 수정 또는 복사

ingest.geoip.downloader.enabled: false

 

그러면 위의 에러는 없어진다.

반응형

 

위의 옵션에 대한 설명

  1. Use the cluster update settings API to set ingest.geoip.downloader.enabled to false. This disables automatic updates that may overwrite your database changes. This also deletes all downloaded databases.
  2. Download your .mmdb database files from the MaxMind site.
  3. You can also use custom city, country, and ASN .mmdb files. These files must be uncompressed and use the respective -City.mmdb, -Country.mmdb, or -ASN.mmdb extensions.
  4. On Elasticsearch Service deployments upload database using a custom bundle.
  5. On self-managed deployments copy the database files to $ES_CONFIG/ingest-geoip.
  6. In your geoip processors, configure the database_file parameter to use a custom database file.
728x90
반응형