Mid*_*ido 0 elasticsearch docker docker-compose
我试图在 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 633a0ea8381.24.0, build 0aa59064看起来您正在使用先前版本的 elasticsearch 中的卷。
尝试将您的./db-files/elasticsearch-data更改为新的内容。像./db-files/elasticsearch-data-2或使用./db-files/elasticsearch-data-2删除旧卷docker volume rm。
使用docker volume ls找出被删除其量的需求。
| 归档时间: |
|
| 查看次数: |
1786 次 |
| 最近记录: |