我试图使用https://github.com/neo4j-contrib/neo4j-elasticsearch官方文档将neo4j与弹性搜索集成。
我已将neo4j-elasticsearch-3.2.3.jar文件放入/ var / lib / neo4j / plugins目录并更改了neo4j.conf,这是官方docs中给出的。但是现在当我启动neo4j时。
sudo service neo4j start
如果我检查sudo service neo4j status
。它会出错。
我已经清理并安装了neo4j几次,但问题仍然存在。虽然还有许多其他类似的问题,但最接近的问题是Integration of elasticsearch with neo4j database,但它们似乎都没有给出解决方案。
这是我的/var/log/neo4j/neo4j.log文件
Mar 02 10:32:59 nikhil-computer systemd[1]: Started Neo4j Graph Database.
Mar 02 10:32:59 nikhil-computer neo4j[12008]: Active database: graph.db
Mar 02 10:32:59 nikhil-computer neo4j[12008]: Directories in use:
Mar 02 10:32:59 nikhil-computer neo4j[12008]: home: /var/lib/neo4j
Mar 02 10:32:59 nikhil-computer neo4j[12008]: config: /etc/neo4j
Mar 02 10:32:59 nikhil-computer neo4j[12008]: logs: /var/log/neo4j
Mar 02 10:32:59 nikhil-computer neo4j[12008]: plugins: /var/lib/neo4j/plugins
Mar 02 10:32:59 nikhil-computer neo4j[12008]: import: /var/lib/neo4j/import
Mar 02 10:32:59 nikhil-computer neo4j[12008]: data: /var/lib/neo4j/data
Mar 02 10:32:59 nikhil-computer neo4j[12008]: certificates: /var/lib/neo4j/certificates
Mar 02 10:32:59 nikhil-computer neo4j[12008]: run: /var/run/neo4j
Mar 02 10:32:59 nikhil-computer neo4j[12008]: Starting Neo4j.
Mar 02 10:33:00 nikhil-computer neo4j[12008]: 2018-03-02 05:03:00.100+0000 INFO ======== Neo4j 3.3.3 ========
Mar 02 10:33:00 nikhil-computer neo4j[12008]: 2018-03-02 05:03:00.136+0000 INFO Starting...
Mar 02 10:33:00 nikhil-computer neo4j[12008]: 2018-03-02 05:03:00.792+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@48bb62' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.configuration.Settings.setting(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/String;)Lorg/neo4j/graphdb/config/BaseSetting;". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@48bb62' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.configuration.Settings.setting(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/String;)Lorg/neo4j/graphdb/config/BaseSetting;".
Mar 02 10:33:00 nikhil-computer neo4j[12008]: org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@48bb62' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.configuration.Settings.setting(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/String;)Lorg/neo4j/graphdb/config/BaseSetting;".
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:219)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@48bb62' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.configuration.Settings.setting(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/String;)Lorg/neo4j/graphdb/config/BaseSetting;".
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: ... 3 more
Mar 02 10:33:00 nikhil-computer neo4j[12008]: Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /var/lib/neo4j/data/databases/graph.db
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:126)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:58)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: ... 5 more
Mar 02 10:33:00 nikhil-computer neo4j[12008]: Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@5b218417' failed to initialize. Please see the attached cause exception "org.neo4j.kernel.configuration.Settings.setting(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/String;)Lorg/neo4j/graphdb/config/BaseSetting;".
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:427)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: ... 9 more
Mar 02 10:33:00 nikhil-computer neo4j[12008]: Caused by: java.lang.NoSuchMethodError: org.neo4j.kernel.configuration.Settings.setting(Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/String;)Lorg/neo4j/graphdb/config/BaseSetting;
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.elasticsearch.ElasticSearchKernelExtensionFactory$ElasticSearchSettings.<clinit>(ElasticSearchKernelExtensionFactory.java:24)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.elasticsearch.ElasticSearchKernelExtensionFactory.newInstance(ElasticSearchKernelExtensionFactory.java:40)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.elasticsearch.ElasticSearchKernelExtensionFactory.newInstance(ElasticSearchKernelExtensionFactory.java:18)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.extension.KernelExtensions.newInstance(KernelExtensions.java:78)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.extension.KernelExtensions.init(KernelExtensions.java:61)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406)
Mar 02 10:33:00 nikhil-computer neo4j[12008]: ... 12 more
Mar 02 10:33:00 nikhil-computer neo4j[12008]: 2018-03-02 05:03:00.794+0000 INFO Neo4j Server shutdown initiated by request
Mar 02 10:33:00 nikhil-computer systemd[1]: neo4j.service: Main process exited, code=exited, status=1/FAILURE
Mar 02 10:33:00 nikhil-computer systemd[1]: neo4j.service: Unit entered failed state.
Mar 02 10:33:00 nikhil-computer systemd[1]: neo4j.service: Failed with result 'exit-code'.
Mar 02 10:33:00 nikhil-computer systemd[1]: neo4j.service: Service hold-off time over, scheduling restart.
Mar 02 10:33:00 nikhil-computer systemd[1]: Stopped Neo4j Graph Database.
请指导我将neo4j-3.3.3与弹性搜索联系起来或参考一些最新的官方文档。
先谢谢 干杯