本帖最后由 leda 于 2022-6-17 17:00 编辑
elasticsearch开启密码认证报错xpack.security.enabled: true 问题1:
[root@log ~]# su elastic -c "/usr/local/elasticsearch/bin/elasticsearch -d"
[root@log ~]# vi elasticsearch.yml uncaught exception in thread [main]
ElasticsearchSecurityException[failed to load SSL configuration [xpack.security.transport.ssl]]; nested: ElasticsearchException[failed to initialize SSL TrustManager - not permitted to read truststore file [/usr/local/elasticsearch/config/elastic-certificates.p12]]; nested: AccessDeniedException[/usr/local/elasticsearch/config/elastic-certificates.p12];
Likely root cause: java.nio.file.AccessDeniedException: /usr/local/elasticsearch/config/elastic-certificates.p12
解决:
配置elastic-certificates.p12的文件权限即可
chmod 777 elastic-certificates.p12
问题2:
java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/elasticsearch/data]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
|