我正在尝试在3台不同的机器上启动一个包含3个实例的neo4j集群,但第3个实例从未启动过。它在单实例模式下运行良好。
版本:neo4j-enterprise-2.2.0-M01
环境:JDK7,Linux的红帽-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'
对于第三个实例,控制台日志只是停留在“将事务写入数据库禁用”,然后在1或2分钟后,实例才会关闭,没有错误或异常。
我无法通过ip访问服务器:7474 UI。
有人能给我一些关于此的信息吗?我做错什么了吗? 任何答案都是适当的
答案 0 :(得分:0)
问题解决了。 我在 data / graph.db / message.log 中找到了一个日志文件,并且端口已在使用异常
我真的没有t know there is a message.log , I didn
在neo4j文档中找到它,我不得不抱怨文档,它太混乱而且没有组织......