Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory,
发布于 15 天前 作者 ly898197688 54 次浏览 来自 问答

image.png

Imported: 109304706 nodes 86758538 relationships 621451235 properties Peak memory usage: 2.75 GB 图数据导入 cost:682.192 Exception in thread “main” java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /SASDATA/neo4j/data/databases/graph_tmp.db at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:209) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:124) at org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:140) at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:133) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:108) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:193) at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:77) at neo4jtools.BuildIndex$.reIndex(BuildIndex.scala:21) at neo4jtools.Parquet2NEO4j$$anonfun$main$1.apply$mcV$sp(Parquet2NEO4j.scala:51) at neo4jtools.Parquet2NEO4j$$anonfun$main$1.apply(Parquet2NEO4j.scala:49) at neo4jtools.Parquet2NEO4j$$anonfun$main$1.apply(Parquet2NEO4j.scala:49) at neo4jtools.package$.Clock(package.scala:19) at neo4jtools.Parquet2NEO4j$.main(Parquet2NEO4j.scala:49) at neo4jtools.Parquet2NEO4j.main(Parquet2NEO4j.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:755) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:119) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component ‘org.neo4j.kernel.NeoStoreDataSource@5f4e7029’ was successfully initialized, but failed to start. Please see the attached cause exception “No dependency satisfies type class org.neo4j.kernel.api.index.SchemaIndexProvider”. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:100) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:205) … 22 more Caused by: org.neo4j.kernel.impl.util.UnsatisfiedDependencyException: No dependency satisfies type class org.neo4j.kernel.api.index.SchemaIndexProvider at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:73) at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:68) at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:403) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434) … 27 more

使用spark-submit 提交用maven打包的jar包, 服务器上的neo4j 是neo4j-community-3.2.3

项目中使用的neo4j是 <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>3.2.3</version> </dependency> 这里还有其它的依赖 <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>2.11.8</version> </dependency> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-compiler</artifactId> <version>2.11.8</version> </dependency> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-reflect</artifactId> <version>2.11.8</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>2.6.0</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-hdfs</artifactId> <version>2.6.0</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-hive_2.11</artifactId> <version>2.2.1</version> </dependency>

1 回复

windows上可以正常运行,生成索引。环境是一致的,都是3.2.3。jdk使用1.8

回到顶部