Hi all,
Trying to use examples from ecosys/tools/etl/tg-jdbc-driver/tg-jdbc-examples but i am getting error when i am running the command:
mvn exec:java -Dexec.mainClass=com.tigergraph.jdbc.examples.GraphQuery -Dexec.args="127.0.0.1 14240 1"
error is below:
[INFO] ------------------< com.tigergraph:tg-jdbc-examples >-------------------
[INFO] Building TigerGraph JDBC examples 1.2
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ tg-jdbc-examples ---
[WARNING]
java.lang.NullPointerException
at org.apache.spark.SparkFiles$.getRootDirectory (SparkFiles.scala:37)
at org.apache.spark.SparkFiles$.get (SparkFiles.scala:31)
at org.apache.spark.SparkFiles.get (SparkFiles.scala)
at com.tigergraph.jdbc.restpp.RestppConnection.<init> (RestppConnection.java:206)
at com.tigergraph.jdbc.restpp.RestppDriver.connect (RestppDriver.java:37)
at com.tigergraph.jdbc.Driver.connect (Driver.java:26)
at com.tigergraph.jdbc.examples.GraphQuery.main (GraphQuery.java:66)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254)
at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.650 s
[INFO] Finished at: 2020-10-27T09:42:02-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project tg-jdbc-examples: An exception occured while executing the Java class. null: NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Someone can help me to resolve this issue ?
Best regards.
Dieudonne.