小编Mid*_*ido的帖子

ElasticSearch java.io.IOException:无法在 docker 中读取...

我试图在 docker 上用不同的版本重新组装一个用于 elasticsearch 的容器,但我仍然有这个错误。

 org.elasticsearch.bootstrap.StartupException: ElasticsearchException[java.io.IOException: failed to read [id:1, legacy:false, file:/usr/share/elasticsearch/data/nodes/0/_state/node-1.st]]; nested: IOException[failed to read [id:1, legacy:false, file:/usr/share/elasticsearch/data/nodes/0/_state/node-1.st]]; nested: IllegalArgumentException[[node_meta_data] unknown field [node_version], parser not found];
Run Code Online (Sandbox Code Playgroud)

这是我的 elasticsearch 配置 DockerFile:

ur_elasticsearch:
  container_name: "ur_elasticsearch"
  image: docker.elastic.co/elasticsearch/elasticsearch:5.3.1
  environment:
    - xpack.security.enabled=false
    - http.host=0.0.0.0
    - transport.host=127.0.0.1
  ports:
    - "9200:9200"
  volumes:
    - ./db-files/elasticsearch-data:/usr/share/elasticsearch/data
  healthcheck:
    test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
    interval: 60s
    timeout: 30s
    retries: 3
Run Code Online (Sandbox Code Playgroud)
  • 码头工人版本: 19.03.5, build 633a0ea838
  • docker-compose 版本: 1.24.0, build 0aa59064
  • Ubuntu 18.04.3 LTS

elasticsearch docker docker-compose

0
推荐指数
1
解决办法
1786
查看次数

标签 统计

docker ×1

docker-compose ×1

elasticsearch ×1