JDBC I've added the pinot-client jar file to my Da...
# general
r
JDBC I've added the pinot-client jar file to my DataGrip as a new Driver. It detects
org.apache.pinot.client.PinotDriver
. When I test the connection, I get this error. Any ideas why? Does Pinot integrate well with Tableau yet?
Copy code
Driver class 'org.apache.commons.lang3.tuple.Pair' not found.
k
Pinging you seperately
🙌 1
p
Hi @Ryan Clark @Kartik Khare i am trying a simple JDBC example in a maven project. i Use the example in this link "https://docs.pinot.apache.org/users/clients/jdbc" I also get the same error while the code compiles without any issues. Can you please help
Stack trace for reference log4j:WARN No appenders could be found for logger (org.apache.pinot.client.PinotDriver). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/tuple/Pair at org.apache.pinot.client.PinotDriver.connect(PinotDriver.java:60) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:191) at org.example.Main.main(Main.java:37) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.tuple.Pair at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ... 4 more Process finished with exit code 1
basically i read another thread where commons-lang3 is needed even thouhg i add it to my pom i still face this issue. i tried to use 1.1.0 client version still same.
correction i tried with 1.1.0 version now i dont see the issue with tuple.Pair but a new problem pops up Exception in thread "main" java.lang.NoSuchMethodError: 'void org.apache.logging.slf4j.Log4jLoggerFactory.<init>(org.apache.logging.slf4j.Log4jMarkerFactory)' at org.apache.logging.slf4j.SLF4JServiceProvider.initialize(SLF4JServiceProvider.java:57) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:195) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:182) at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:490) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:476) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:425) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:451) at org.apache.pinot.client.PinotDriver.<clinit>(PinotDriver.java:47) at org.example.Main.main(Main.java:24)
r
+1 same issue with 1.2.0 version