Recently, when a springboot integrated es project was started, an error was reported after successful startup: Elasticsearch health check failed
There are two method to solve this error:
1. Close the health check of the actor on elasticsearch (I tried this method, and the project cannot be started later, and this method is not recommended):
management:
health:
elasticsearch:
enabled: false
2. Configure according to spring.elasticsearch.rest
. uris
(the problem is solved after restart):
spring:
# ES search engine
data:
elasticsearch:
cluster-nodes: 47.103.5.190:9300
cluster-name: docker-cluster
repositories:
enabled: true
elasticsearch:
rest:
uris: ["http://47.103.5.190:9200"]
Read More:
- [Solved] ES Error: Elasticsearch health check failed
- ES Error: Elasticsearch health check failed [How to Solve]
- [Solved] Project Startup Error: Redis health check failed:Unable to connect to localhost6379
- [Solved] Project Startup Error: Redis health check failed: Unable to connect to localhost6379
- Springboot Integrate Swagger2 Error: Failed to start bean ‘documentationPluginsBootstrapper‘;
- [Solved] Springboot integrate swagger error: Failed to start bean ‘documentationPluginsBootstrapper‘
- [Solved] Springboot integrate swagger error: failed to start bean ‘documentationpluginsbootstrapper‘
- Springboot2.6X version integrate knife4j error [How to Solve]
- Springboot mybatis Integrate Error: Invalid bound statement (not found): com…DepartmentMapper.save
- [Solved] Springboot2.x ElasticSearch Error: availableProcessors is already set to [4], rejecting [4]
- Springboot integration RabbitMQ times error: Failed to check/redeclare auto-delete queue(s).
- springboot Integrate mybatis Error: Error creating bean with name ‘deptController‘: Unsatisfied dependency expresse
- SpringBoot Integrating elasticsearch Error: Error creating bean with name ‘restHighLevelClient‘
- SpringBoot integrates Es error: Error creating bean with name ‘restHighLevelClient‘ defined in class path resource
- Consumer service instance error: HTTP get http://xxx/actuator/health: 503 output: {“status”: “out_of_service”
- [Solved] ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed t
- [Solved] ES Error: request contains unrecognized parameter [ignore_throttled]
- [Solved] Flink1.12 integrate Hadoop 3.X error: java.lang.RuntimeException…
- [Solved] activiti integrate error: GlobalAuthenticationConfigurerAdapter.class does not exist
- How to Solve Spring integrate Seata startup error