janusgraph与安全elasticsearch的连接(https和用户名/密码)

ncgqoxb0  于 2021-07-13  发布在  ElasticSearch
关注(0)|答案(0)|浏览(585)

我们有像贝洛一样可以访问的eshttps://elasticsearch:9200,用户名弹性,密码通过。我们要在janusgraph中设置配置。我无法连接到es,错误如下。当我试图生成密钥库文件时。我还是有错误。谁能帮我配置?

4305 [main] INFO  org.janusgraph.diskstorage.Backend  - Configuring index [search]
4331 [main] WARN  org.janusgraph.diskstorage.es.rest.RestClientSetup  - SSL hostname verification is disabled, Elasticsearch HTTPS connections may not be secure
4818 [main] WARN  org.janusgraph.diskstorage.es.rest.RestElasticSearchClient  - Unable to determine Elasticsearch server version. Default to SEVEN.
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

设置如下所示。

index.search.backend = elasticsearch
index.search.hostname = elasticsearch7-es-http
index.search.elasticsearch.http.auth.type = basic

# index.search.elasticsearch.ssl.enabled = true

# index.search.elasticsearch.ssl.keystore.location = /opt/janusgraph/conf/gremlin-server/keystore.jks

# index.search.elasticsearch.ssl.keystore.storepassword = b123456

# index.search.elasticsearch.ssl.keystore.keypassword = a123456

index.search.elasticsearch.http.auth.basic.username = elastic
index.search.elasticsearch.http.auth.basic.password = pass
index.search.elasticsearch.ssl.disable-hostname-verification = true

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题