简体   繁体   中英

JDBC Driver for TigerGraph DB

I am trying to connect to Tigergraph DB from Spark using IntelliJ IDE. Can anyone help with the jdbc driver (.jar) file? I am looking for "com.tigergraph.jdbc.Driver".

I did find below gitHub repository with all the required.java file. But, I am not sure how to use it inside my spark project. https://github.com/tigergraph/ecosys/tree/master/tools/etl/tg-jdbc-driver

Can anyone help me on this?

It can be done quickly. I hope you are familiar with maven and git.

  1. [[Command prompt]] git clone https://github.com/tigergraph/ecosys.git
  2. Navigate to [[project checkout path]]\ecosys\tools\etl\tg-jdbc-driver
  3. execute mvn clean compile install -Dmaven.test.skip=true

and then, once build is okay you will get the JAR in the folder

在此处输入图像描述

在此处输入图像描述

You can use this JAR afterwards in your project.

according to the GitHub documentation of tg-jdbc-driver repository, you need to build the JAR and then you can include this dependency in your pom.xml and start using it's API.

Some helpful resources:

https://medium.com/tigergraph/data-lakes-will-yield-more-business-value-when-combined-with-graph-databases-928181dffe24

https://www.programmersought.com/article/68114478380/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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