集群名称更改后,JanusGraph 无法连接到 ElasticSearch

双M

我正在尝试JanusGraph使用以下配置实例化,使用Cassandra作为存储后端,使用ElasticSearch作为索引后端:

JanusGraph graph = JanusGraphFactory.build()
    .set("storage.backend", "cassandra")
    .set("storage.hostname", "localhost")

    .set("cache.db-cache", true)
    .set("schema.default", "none")

    .set("index.search.backend", "elasticsearch")
    .set("index.search.elasticsearch.client-only", "false")
    .set("index.search.elasticsearch.local-mode", "true")
    .open();

如果 cassandra 的 cluser 名为 ,则上述代码有效Test Cluster如果我将其重命名为其他名称,则会引发异常:

java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.es.ElasticSearchIndex
    at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:69)
    at org.janusgraph.diskstorage.Backend.getImplementationClass(Backend.java:477)
    at org.janusgraph.diskstorage.Backend.getIndexes(Backend.java:464)
    at org.janusgraph.diskstorage.Backend.<init>(Backend.java:149)
    at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:1850)
    at org.janusgraph.graphdb.database.StandardJanusGraph.<init>(StandardJanusGraph.java:134)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:107)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:97)
    at org.janusgraph.core.JanusGraphFactory$Builder.open(JanusGraphFactory.java:152)
    at engineering.divine.core.GraphFactory.cassandraGraph(GraphFactory.java:403)
    at engineering.divine.core.GraphFactory.graph(GraphFactory.java:298)
    at engineering.divine.core.GraphFactory.getDefault(GraphFactory.java:99)
    at engineering.divine.repository.Repository.listRepositoriesToUpdate(Repository.java:130)
    at engineering.divine.daemon.RepositoryAnalysisDaemon.run(RepositoryAnalysisDaemon.java:24)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:58)
    ... 20 more
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
    at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:279)
    at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:198)
    at org.elasticsearch.client.transport.support.InternalTransportClusterAdminClient.execute(InternalTransportClusterAdminClient.java:86)
    at org.elasticsearch.client.support.AbstractClusterAdminClient.health(AbstractClusterAdminClient.java:127)
    at org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder.doExecute(ClusterHealthRequestBuilder.java:92)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
    at org.janusgraph.diskstorage.es.ElasticSearchIndex.<init>(ElasticSearchIndex.java:215)
    ... 25 more

如何elasticsearch使用我的新集群名称?使用 Max OS X 10.11.6,任何指针都受到高度赞赏。

无耻的伊斯兰教

重置您的数据,如果是为了测试目的

  1. 从存储后端清除所有数据 (Cassandra)
  2. 重启所有 janusgraph 节点

在 JanusGraph 中

每个配置选项都有一定的可变性级别,用于控制在第一次打开数据库后是否以及如何修改它。以下清单描述了可变性级别。

  • 固定的

    一旦数据库被打开,这些配置选项在数据库的整个生命周期内都不能更改

  • GLOBAL_OFFLINE

    这些选项只能在所有实例都关闭时为整个数据库集群一次更改

  • 全球的

    这些选项只能在整个数据库集群中全局更改 MASKABLE 这些选项是全局的,但可以被本地配置文件覆盖

  • 当地的

    这些选项只能通过本地配置文件提供

您可以从以下链接获取任何配置的可变性级别

来源:http : //docs.janusgraph.org/latest/config-ref.html

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Graylog 无法连接到 Kubernetes 集群中的 Elasticsearch

JanusGraph,Spark集群无法连接到Cassandra

filebeat 无法连接到elasticsearch

错误:无法成功连接到ElasticSearch。检查您的集群状态是否不是RED并且ElasticSearch是否正常运行

Kibana无法在Docker上连接到Elasticsearch

Packetbeat 无法连接到 elasticsearch docker

Docker上的Kibana无法连接到Elasticsearch

无法将Kibana连接到Elasticsearch

无法从Spark连接到AWS Elasticsearch

无法在 Docker 中连接到 Elasticsearch

无法连接到 GetCandy 内的 ElasticSearch

无法连接到MongoDB集群

Kibana将无法连接到Amazon Elasticsearch Service上的Elasticsearch

将Kibana连接到Kubernetes集群中的Elasticsearch

如何使用SSL将Winlogbeat连接到Elasticsearch停放的集群?

无法连接到Mongo Atlas getaddrinfo ENOTFOUND [集群名称]

NodeJs 连接到 elasticsearch

无法从集群内部连接到kubernetes API

无法将节点连接到集群

Google Cloud Kubernetes无法连接到集群

KafkaTool:无法连接到Kafka集群

主节点无法连接到集群

Elasticsearch Interpreter 无法连接到数据库

无法连接到我的Elasticsearch实例:NoNodeAvailableException

Spring Boot 2.0无法连接到ElasticSearch 5.5.0-NoNodeAvailableException

无法在Docker中使用PHP连接到Elasticsearch

无法连接到我的代理elasticsearch节点

无法使用docker-compose连接到kibana / elasticsearch

无法使用 Docker-Compose 中的图像连接到 Elasticsearch