简体   繁体   English

使用Pentaho Spoon与Neo4j建立数据库连接

[英]Database connection to Neo4j with Pentaho Spoon

I want to connect to Neo4j with Pentaho Kettle Spoon. 我想用Pentaho水壶勺连接到Neo4j。 I downloaded jdbc driver of neo4j with this and I tried to use this guide to connect to neo4j with Pentaho Kettle Spoon. 我下载的Neo4j的JDBC驱动程序与 ,我试图用这个指南连接与Pentaho的水壶勺子Neo4j的。
I have two main problems: 我有两个主要问题:

  1. downloaded JDBC Driver is zip file. 下载的JDBC驱动程序是zip文件。
    I changed Driver extension to jar for solving this problem. 我将驱动程序扩展名更改为jar以解决此问题。
  2. when I changed extension to jar and copy it in lib folder and follow this guide I faced missing driver error: 当我将扩展名更改为jar并将其复制到lib文件夹中并按照本指南进行操作时,我遇到了丢失的驱动程序错误:

org.neo4j.jdbc.Driver could not be found 找不到org.neo4j.jdbc.Driver

How can I solve these problems? 我该如何解决这些问题?

You can not rename the .zip file you downloaded from Github and add to lib folder. 您无法重命名从Github下载的.zip文件并添加到lib文件夹。 You need to compile the source code and add the .jar file to it. 您需要编译源代码并将.jar文件添加到其中。 Or you can download the already compiled file from here and add to the data-integration\\lib folder and restart the spoon. 或者,您可以从此处下载已经编译的文件,然后将其添加到data-integration\\lib文件夹中,然后重新启动勺子。


In Table Input step select Table Input步骤中选择

  • Connection type as Generic database 连接类型为Generic database
  • Custom connection URL as jdbc:neo4j://localhost:7474 自定义连接URL为jdbc:neo4j://localhost:7474
  • Custom driver class name as org.neo4j.jdbc.Driver 自定义驱动程序类名称为org.neo4j.jdbc.Driver

我在PDI Marketplace上放置了Neo4j的连接器,该连接器在数据库源列表中添加了“ Neo4j”,因此您无需配置通用驱动程序或从Neo4j下载驱动程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM