我无法使用以下错误与tNeo4jConnection
建立联系。
我正在使用 Neo4j 2.3 ,但是没有在Talend中看到这个DBVersion,所以我在下拉列表中使用了 Neo4j 2.2.X 选项。
此外,您在哪里设置Neo4J数据库的用户和密码?
[statistics] connecting to socket on port 4019
[statistics] connected
Exception in component tNeo4jConnection_1
java.lang.RuntimeException: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, C:\Users\shopp\Documents\Neo4j\Fluid4
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:335)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:108)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:95)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:176)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:67)
at fluidactions.importneo4j_0_1.ImportNeo4j.tNeo4jConnection_1Process(ImportNeo4j.java:400)
at fluidactions.importneo4j_0_1.ImportNeo4j.runJobInTOS(ImportNeo4j.java:2089)
at fluidactions.importneo4j_0_1.ImportNeo4j.main(ImportNeo4j.java:1942)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.state.DataSourceManager@1ee7a188' was successfully initialized, but failed to start. Please see attached cause exception.
[statistics] disconnected
答案 0 :(得分:0)
Talend目前不支持 Neo4j 2.3 。但是,就像您尝试过的那样, Neo4j 2.2 的驱动程序应该可以正常工作。
仅支持远程服务器的用户/密码。请激活该选项并将服务器URL设置为http://localhost:7474/db/data
。
请务必在http://localhost:7474/browser/
上连接一次以更改密码,否则neo4j将阻止连接。
答案 1 :(得分:0)
似乎是版本2.3 Talend Neo4j导入的最佳解决方案是将LoadCSV cypher放入tNeo4jRow。这当然涉及从SQL服务器生成.csv文件的额外步骤,但仍然比使用tNeo4jOutput组件更快,如下所示。
当使用tNeo4jOutput时,导入速度非常慢,然后您需要额外的2个密码步骤来实际标记节点,并删除用于标记节点的NodeType字段。请参阅https://lucidwebdreams.wordpress.com/2014/07/24/import-data-into-neo4j-from-ms-sql-server-directly-using-talend/
周围的这个章节