Note that there are some explanatory texts on larger screens.

plurals
  1. PONeo4j HA (embedded) via Spring?
    primarykey
    data
    text
    <p>Using 1.8.2 -- trying to set up (initially) a 2-node HA cluster.</p> <p>Following section "22.5.4. Start Neo4j Embedded in HA mode" of</p> <p><a href="http://docs.neo4j.org/chunked/stable/ha-setup-tutorial.html" rel="nofollow">http://docs.neo4j.org/chunked/stable/ha-setup-tutorial.html</a></p> <p>I have added the following to my pom.xml:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.neo4j&lt;/groupId&gt; &lt;artifactId&gt;neo4j-ha&lt;/artifactId&gt; &lt;version&gt;${neo4j-version}&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>and modified my application-content.xml to the following:</p> <pre><code>&lt;neo4j:config graphDatabaseService="graphDatabaseService" /&gt; &lt;context:property-placeholder location="file:/etc/whiteRabbit.properties" /&gt; &lt;bean id="graphDatabaseService" class="org.neo4j.kernel.HighlyAvailableGraphDatabase" destroy-method="shutdown" scope="singleton"&gt; &lt;constructor-arg index="0" value="${database.path}" /&gt; &lt;constructor-arg index="1"&gt; &lt;map&gt; &lt;entry key="ha.server_id" value="${server.id}"&gt;&lt;/entry&gt; &lt;entry key="ha.server" value="${ha.server.address}:${ha.server.port}"&gt;&lt;/entry&gt; &lt;entry key="ha.coordinators" value="${coordinators}"&gt;&lt;/entry&gt; &lt;entry key="enable_remote_shell" value="port=1331"&gt;&lt;/entry&gt; &lt;entry key="ha.pull_interval" value="1"&gt;&lt;/entry&gt; &lt;/map&gt; &lt;/constructor-arg&gt; &lt;/bean&gt; </code></pre> <p>and</p> <p>/etc/whiteRabbit.properties contains:</p> <p>node 1 (address: 192.168.1.68)</p> <pre><code>server.id=1 ha.server.address=localhost ha.server.port=6001 database.path=/databases/data/graph.db coordinators=localhost:2181,192.168.1.100:2181 </code></pre> <p>and node 2 (address 192.168.1.100) </p> <pre><code>server.id=2 ha.server.address=localhost ha.server.port=6001 database.path=/databases/data/graph.db coordinators=localhost:2181,192.168.1.68:2181 </code></pre> <p>When I start up each instance, I get the normal startup logs, then</p> <pre><code>14:57:58.171 [localhost-startStop-1] INFO neo4j - WARNING! Deprecated configuration options used. See manual for details 14:57:58.171 [localhost-startStop-1] INFO neo4j - neo4j.ext.udc.disable has been replaced with neo4j.ext.udc.enabled 14:57:58.171 [localhost-startStop-1] INFO neo4j - cannot configure writers and searchers individually since they go together </code></pre> <p>(only the first two of those sem to relate to the change to HA)</p> <p>then.. nothing.... (!)</p> <p>Startup simply stops there. Given that the setup configuration for standalone servers in the page noted above mentions starting the coordinator instances as a separate part fo the process, is that something I need to do manually here? Or should that just take care of itself? How do I find logging info to start working out why I'm just seeing the nodes hang? BTW behaviour is no different if I start up just a single node -- same hang, same place in the logs...</p> <p>Im guessing I'm missing something simple?</p> <p>D</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload