neo4j-elasticsearch: make neo4j can't started
hello,I did what you said:
1.Clone this repository and run mvn install -DskipTests
2.Copy the jar
files in target/dependency
to your Neo4j instance’s
plugins
folder
3.Also copy target/neo4j-elasticsearch-2.3-SNAPSHOT.jar
to the
plugins
folder
4.Modify conf/neo4j.conf
accordingly like this:
elasticsearch.host_name=http://localhost:9200
elasticsearch.index_spec=actor:Actor(name), director:Director(name), movie:Movie(title),person:Person(name), user:User(name)
5.Restart Neo4j
and I’m sure the elasticsearch service run in the localhost:9200 but,when I restart Neo4j,it can’t start,there are error on starting:
ERROR Failed to start Neo4j: Starting Neo4j failed: Component ‘org.neo4j.server.database.LifecycleManagingDatabase@12108f0d’ was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component ‘org.neo4j.server.database.LifecycleManagingDatabase@12108f0d’ was successfully initialized, but failed to start. Please see attached cause exception. org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component ‘org.neo4j.server.database.LifecycleManagingDatabase@12108f0d’ was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:217) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:81) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:60) at org.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:32) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component ‘org.neo4j.server.database.LifecycleManagingDatabase@12108f0d’ was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:189) … 3 more Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.enterprise.EnterpriseFacadeFactory, /home/wonders/develop/noe4j/neo4j-enterprise-3.0.1/data/databases/graph.db at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144) at org.neo4j.kernel.impl.enterprise.EnterpriseFacadeFactory.newFacade(EnterpriseFacadeFactory.java:42) at org.neo4j.graphdb.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:57) at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:85) at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434) … 5 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component ‘org.neo4j.kernel.extension.KernelExtensions@761166bb’ failed to initialize. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:416) at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140) … 10 more Caused by: java.lang.AbstractMethodError at org.neo4j.kernel.extension.KernelExtensions.init(KernelExtensions.java:69) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406) … 13 more
I can’t find where is the wrong.I hope you can help me. Thanks.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 29 (9 by maintainers)
@jexp sorry that I was looking at the wrong directory. In AWS, the configuration is in /etc/neo4j/neo4j.conf instead of /var/lib/neo4j/conf/neo4j.conf.
I used the following command to find out. I hope this can help other people:
I solved this problem.this is the version cause this problem.I use NEO4J 3.0.1,so I change the NEO4J’s version 2.0.3 to 3.0.1 in the program.and there are some change in code at ElasticSearchKernelExtensionFactory.java. like this:
then build,and do what readme.adoc said. I hope it can help you. @az-ericso