[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. self signed certificate in certificate chain
时间: 2024-01-10 13:02:54 浏览: 69
This error occurs when the Elasticsearch service is unable to retrieve version information from nodes due to a self-signed certificate in the certificate chain.
To resolve this issue, you need to configure Elasticsearch to trust the self-signed certificate by adding it to Elasticsearch's truststore. You can do this by following these steps:
1. Locate the Elasticsearch truststore file on your system. On Linux systems, this is typically located at /etc/elasticsearch/truststore.jks.
2. Add the self-signed certificate to the truststore using the keytool utility. The command to do this is as follows:
```
keytool -import -file /path/to/certificate.crt -alias mycertificate -keystore /path/to/truststore.jks
```
Replace /path/to/certificate.crt with the path to the self-signed certificate file, and /path/to/truststore.jks with the path to the Elasticsearch truststore file.
3. Restart the Elasticsearch service to apply the changes.
After completing these steps, the Elasticsearch service should be able to retrieve version information from nodes without encountering the self-signed certificate error.