我已经使用2.0.2版企业成功设置了neo4j 3实例HA群集,但是使用内置备份脚本(../ bin / neo4j-backup)时出现问题。
我手动运行:
./bin/neo4j-backup -from ha://10.6.10.48:5001 -to /usr/local/neo4j/backup
...在主服务器上,第一次运行正常,将数据转储到../neo4j/backup。
使用相同命令的后续尝试仅在命令行上生成:
Could not find backup server in cluster neo4j.ha at 10.6.10.48:5001, operation timed out
,这在messages.log中:
2014-04-29 17:08:00.919+0000 DEBUG [o.n.c.p.c.ClusterState$4]: ClusterState: entered-[configurationRequest]->entered from:cluster://10.6.10.48:5002 conversation-id:-1/8# payload:-1:cluster://0.0.0.0:5002/?name=Backup
2014-04-29 17:08:00.922+0000 ERROR [o.n.c.c.NetworkSender]: Receive exception:
java.nio.channels.ClosedChannelException: null
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:409) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:127) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:83) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.channel.Channels.write(Channels.java:725) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.channel.Channels.write(Channels.java:704) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.channel.Channels.write(Channels.java:671) ~[netty-3.6.3.Final.jar:na]
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ~[netty-3.6.3.Final.jar:na]
at org.neo4j.cluster.com.NetworkSender$2.run(NetworkSender.java:266) ~[neo4j-cluster-2.0.2.jar:2.0.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_15]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_15]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_15]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_15]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_15]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_15]
(异常每隔5秒重复一次)
相关的neo4j.properties值:
online_backup_enabled=true
online_backup_server=127.0.0.1:6362
ha.cluster_server=10.6.10.48:5001
我已检查所有实例的所有防火墙设置。
任何帮助将不胜感激!
答案 0 :(得分:2)
与single://<host>
相比,以一般方式运行在线备份与ha://<host>
相比更加轻松。从功能视角来看,ha://
没有优势。
所以你可以改变
online_backup_server = 10.6.10.48:6362
然后运行
/bin/neo4j-backup -single ha://10.6.10.48:6362 -to /usr/local/neo4j/backup