Search code examples
javaapache-sparkintellij-ideatigergraph

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?


Solution

  • 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

    enter image description here

    enter image description here

    You can use this JAR afterwards in your project.