【问题标题】:Cannot start a neo4j cluster with 3 instances on different machines无法在不同机器上启动具有 3 个实例的 neo4j 集群
【发布时间】:2014-12-12 06:37:49
【问题描述】:

我正在尝试在 3 台不同的机器上启动具有 3 个实例的 neo4j 集群,但第 3 个实例从未启动。并且在单实例模式下运行良好。

版本:neo4j-enterprise-2.2.0-M01

环境:JDK7,linux-redhat-2.6.18,64bit

配置如下:

实例 1

neo4j-server.properties:

org.neo4j.server.webserver.address=<ip:1>
org.neo4j.server.database.mode=HA
...

neo4j.properties:

online_backup_server==<ip:1>:6362
ha.initial_hosts=<ip:1>:5001,<ip:2>:5001,<ip:3>:5001
ha.cluster_server=<ip:1>:5001
ha.server=<ip:1>:6001
...

实例 2:

neo4j-server.properties:

org.neo4j.server.webserver.address=<ip:2>
org.neo4j.server.database.mode=HA
...

neo4j.properties:

online_backup_server==<ip:2>:6362
ha.initial_hosts=<ip:1>:5001,<ip:2>:5001,<ip:3>:5001
ha.cluster_server=<ip:2>:5001
ha.server=<ip:2>:6001
...

实例 3:

neo4j-server.properties:

org.neo4j.server.webserver.address=<ip:3>
org.neo4j.server.database.mode=HA
...

neo4j.properties:

online_backup_server==<ip:3>:6362
ha.initial_hosts=<ip:1>:5001,<ip:2>:5001,<ip:3>:5001
ha.cluster_server=<ip:3>:5001
ha.server=<ip:3>:6001
...

当我一一启动这 3 个实例时,我得到如下日志:

-------------终端------------

WARNING: Max 8196 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -            Dorg.neo4j.server.properties=conf/neo4j-server.properties -  Djava.util.logging.config.file=conf/logging.properties -  Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -  XX:+CMSClassUnloadingEnabled -XX:MaxDirectMemorySize=2G -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...WARNING: not changing user
 HA instance started in process [16030]. Will be operational once connected to peers.     See /sbclocal/apps/f35/neo4j/neo4j-enterprise-2.2.0-M01/data/log/console.log for current status.

----------------console.log------------------

2014-12-12 05:53:17.994+0000 INFO  [Cluster] Write transactions to database disabled
2014-12-12 05:53:19.399+0000 INFO  [Cluster] Attempting to join cluster of [<ip:1>:5001, <ip:2>:5001, <ip:3>:5001]

----------------neo4j.0.0.log-------------------- -

Dec 11, 2014 7:21:48 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM'

对于第 3 个实例,控制台日志只是停留在“将事务写入数据库已禁用”,然后在 1 或 2 分钟后,实例就停止了,没有错误或异常。

我无法通过 ip:7474 UI 访问服务器。

谁能给我一些关于这个的信息吗?我做错什么了吗? 任何答案都适用

【问题讨论】:

  • 机器可以互相接触/看到吗?它们之间的端口是否开放?没有防火墙规则?
  • @MichaelHunger 感谢您的帮助,问题解决了。在data/graph.db/message.log中发现异常,详情可以看我的回答。

标签: neo4j


【解决方案1】:

问题解决了。 我在 data/graph.db/message.log 中找到了一个日志文件,并且有 Port already in use 异常

我真的没有t know there is a message.log , I didnt在neo4j文档中找到它,我不得不抱怨文档,它是如此混乱且没有组织......

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多