Neo4j HA

55 views
Skip to first unread message

bigtoch

unread,
Apr 4, 2012, 10:29:32 AM4/4/12
to Neo4j
Hi,

I have followed the doc on the neo4j site :
http://docs.neo4j.org/chunked/milestone/ha-setup-tutorial.html to
setup the neo4j-HA. I did the coordinators settings and jump to the
neo4j embedded in HA. The server starts very well from my eclipse
console. However when I run the next step using the neo4j console to
continue the rest of the tutorial I got the following message hainfo
unknown command.

Please assist me and educate me on what I am doing wrong.

Arsene

Peter Neubauer

unread,
Apr 4, 2012, 1:08:25 PM4/4/12
to ne...@googlegroups.com
Arsene,
can't see the command you get anywhere? also, try to set up a local
cluster with https://github.com/neo4j/neo4j-enterprise-local-qa, and
then use similar neo4j.properties files in an embedded GDB config.

Would that work?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

heucles del bianco

unread,
Apr 4, 2012, 1:41:53 PM4/4/12
to ne...@googlegroups.com
Try to clean your browser´s cache.

[],s


De: bigtoch <gan...@gmail.com>
Para: Neo4j <ne...@googlegroups.com>
Enviadas: Quarta-feira, 4 de Abril de 2012 11:29
Assunto: [Neo4j] Neo4j HA

Peter Neubauer

unread,
Apr 4, 2012, 1:45:04 PM4/4/12
to ne...@googlegroups.com
Arsene,
remember that you also can examine the cluster status via JMX.

Just start jconsole, and see what JMX info you get, there should be HA
related info under the neo4j namespace?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

On Wed, Apr 4, 2012 at 4:29 PM, bigtoch <gan...@gmail.com> wrote:

bigtoch

unread,
Apr 5, 2012, 4:57:52 AM4/5/12
to Neo4j
I run the rake script and I got the following errors:

executing 'machineA/bin/neo4j-shell -c 'mknode''
executing 'machineB/bin/neo4j-shell -c 'cd -a 1 && set name prop1''
executing 'machineC/bin/neo4j-backup -full -from ha://localhost:2181 -
to machineC/backup -ha.cluster_name local.jvm.only.cluster'
Asking coordinator service at 'ha://localhost:2181' for master
Found master 'ha://localhost:6362' in cluster
Performing full backup from 'ha://localhost:6362'
Couldn't connect to 'ha://localhost:6362'
org.neo4j.com.ComException: Client could not connect to localhost/
127.0.0.1:6362
at org.neo4j.com.Client$1.create(Client.java:124)
at org.neo4j.com.Client$1.create(Client.java:106)
at org.neo4j.com.ResourcePool.acquire(ResourcePool.java:104)
at org.neo4j.com.Client.getChannel(Client.java:301)
at org.neo4j.com.Client.sendRequest(Client.java:196)
at org.neo4j.com.Client.sendRequest(Client.java:185)
at org.neo4j.backup.BackupClient.fullBackup(BackupClient.java:47)
at org.neo4j.backup.OnlineBackup.full(OnlineBackup.java:91)
at org.neo4j.backup.BackupTool.doBackupFull(BackupTool.java:139)
at org.neo4j.backup.BackupTool.doBackup(BackupTool.java:124)
at org.neo4j.backup.BackupTool.main(BackupTool.java:89)
executing 'machineC/bin/neo4j-shell -c 'mknode''
executing 'machineA/bin/neo4j stop'
Stopping Neo4j Server [30311].... done
executing 'machineC/bin/neo4j-backup -incremental -from ha://localhost:2182
-to machineC/backup -ha.cluster_name local.jvm.only.cluster'
Asking coordinator service at 'ha://localhost:2182' for master
Found master 'ha://localhost:6362' in cluster
Performing incremental backup from 'ha://localhost:6362'
Exception in thread "main" java.lang.RuntimeException: machineC/backup
doesn't contain a database
at org.neo4j.backup.OnlineBackup.incremental(OnlineBackup.java:165)
at org.neo4j.backup.BackupTool.doBackupIncremental(BackupTool.java:
154)
at org.neo4j.backup.BackupTool.doBackup(BackupTool.java:128)
at org.neo4j.backup.BackupTool.main(BackupTool.java:89)


For the whole input :



bigtoch@ironman:~/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed$
rake qa
(in /home/bigtoch/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed)
untarring: neo4j4j-enterprise-1.6.1-unix.tar.gz
/home/bigtoch/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed/rakefile:
55: warning: Insecure world writable dir /usr/lib/oracle/xe/app/oracle/
product/10.2.0/server//bin in PATH, mode 040777

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
rake aborted!
unknown file type: neo4j4j-enterprise-1.6.1
/home/bigtoch/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed/rakefile:
61
(See full trace by running task with --trace)
bigtoch@ironman:~/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed$
clear
bigtoch@ironman:~/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed$
rake qa(in /home/bigtoch/GraphDB/neo4j-neo4j-enterprise-local-
qa-38cd1ed)
untarring: neo4j-enterprise-1.6.1-unix.tar.gz
/home/bigtoch/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed/rakefile:
55: warning: Insecure world writable dir /usr/lib/oracle/xe/app/oracle/
product/10.2.0/server//bin in PATH, mode 040777
Starting Neo4j Coordinator...WARNING: not changing user
process [30114]... waiting for coordinator to be ready. OK.
Starting Neo4j Coordinator...WARNING: not changing user
process [30146]... waiting for coordinator to be ready. OK.
Starting Neo4j Coordinator...WARNING: not changing user
process [30178]... waiting for coordinator to be ready. OK.
waiting a sec for the coordinators to be ready ....
WARNING: Detected a limit of 1024 for maximum open files, while a
minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please
refer to the Neo4j manual regarding lifting this limitation.
Starting Neo4j Server...WARNING: not changing user
process [30311]... waiting for server to be ready..... OK.
WARNING: Detected a limit of 1024 for maximum open files, while a
minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please
refer to the Neo4j manual regarding lifting this limitation.
Starting Neo4j Server...WARNING: not changing user
process [30481]... waiting for server to be ready..... OK.
WARNING: Detected a limit of 1024 for maximum open files, while a
minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please
refer to the Neo4j manual regarding lifting this limitation.
Starting Neo4j Server...WARNING: not changing user
process [30656]... waiting for server to be ready........ OK.
executing 'machineA/bin/neo4j-shell -c 'mknode''
executing 'machineB/bin/neo4j-shell -c 'cd -a 1 && set name prop1''
executing 'machineC/bin/neo4j-backup -full -from ha://localhost:2181 -
to machineC/backup -ha.cluster_name local.jvm.only.cluster'
Asking coordinator service at 'ha://localhost:2181' for master
Found master 'ha://localhost:6362' in cluster
Performing full backup from 'ha://localhost:6362'
Couldn't connect to 'ha://localhost:6362'
org.neo4j.com.ComException: Client could not connect to localhost/
127.0.0.1:6362
at org.neo4j.com.Client$1.create(Client.java:124)
at org.neo4j.com.Client$1.create(Client.java:106)
at org.neo4j.com.ResourcePool.acquire(ResourcePool.java:104)
at org.neo4j.com.Client.getChannel(Client.java:301)
at org.neo4j.com.Client.sendRequest(Client.java:196)
at org.neo4j.com.Client.sendRequest(Client.java:185)
at org.neo4j.backup.BackupClient.fullBackup(BackupClient.java:47)
at org.neo4j.backup.OnlineBackup.full(OnlineBackup.java:91)
at org.neo4j.backup.BackupTool.doBackupFull(BackupTool.java:139)
at org.neo4j.backup.BackupTool.doBackup(BackupTool.java:124)
at org.neo4j.backup.BackupTool.main(BackupTool.java:89)
executing 'machineC/bin/neo4j-shell -c 'mknode''
executing 'machineA/bin/neo4j stop'
Stopping Neo4j Server [30311].... done
executing 'machineC/bin/neo4j-backup -incremental -from ha://localhost:2182
-to machineC/backup -ha.cluster_name local.jvm.only.cluster'
Asking coordinator service at 'ha://localhost:2182' for master
Found master 'ha://localhost:6362' in cluster
Performing incremental backup from 'ha://localhost:6362'
Exception in thread "main" java.lang.RuntimeException: machineC/backup
doesn't contain a database
at org.neo4j.backup.OnlineBackup.incremental(OnlineBackup.java:165)
at org.neo4j.backup.BackupTool.doBackupIncremental(BackupTool.java:
154)
at org.neo4j.backup.BackupTool.doBackup(BackupTool.java:128)
at org.neo4j.backup.BackupTool.main(BackupTool.java:89)
bigtoch@ironman:~/GraphDB/neo4j-neo4j-enterprise-local-qa-38cd1ed$
Reply all
Reply to author
Forward
0 new messages