Zac Farrell
01/20/2021, 8:12 PMjava.lang.NoClassDefFoundError: org/apache/pinot/client/JsonAsyncHttpPinotClientTransportFactory
i've tried running both v0.6.0 (latest) and 0.5.0 (version called out in docs) but both produce the same error. I've also tried compiling the jar from source, as well as including it as an explicit dependency in maven.
Any help is appreciated, thanks!Xiang Fu
Zac Farrell
01/21/2021, 3:13 AMPinotDriver
.Xiang Fu
Kartik Khare
01/21/2021, 4:51 AMZac Farrell
01/21/2021, 5:28 PMZac Farrell
01/21/2021, 5:28 PMZac Farrell
01/21/2021, 5:29 PMmvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.example:pinot-jdbc-driver-error >-----------------
[INFO] Building pinot-jdbc-driver-error 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pinot-jdbc-driver-error ---
[INFO] Deleting /Users/zacfarrell/Projects/mode/pinot-jdbc-driver-error/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ pinot-jdbc-driver-error ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ pinot-jdbc-driver-error ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ pinot-jdbc-driver-error ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/zacfarrell/Projects/mode/pinot-jdbc-driver-error/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ pinot-jdbc-driver-error ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /Users/zacfarrell/Projects/mode/pinot-jdbc-driver-error/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ pinot-jdbc-driver-error ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running PinotTest
log4j:WARN No appenders could be found for logger (org.apache.pinot.client.PinotDriver).
log4j:WARN Please initialize the log4j system properly.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.042 s <<< FAILURE! - in PinotTest
[ERROR] testIt Time elapsed: 0.04 s <<< ERROR!
java.lang.NoClassDefFoundError: org/apache/pinot/client/JsonAsyncHttpPinotClientTransportFactory
at PinotTest.testIt(PinotTest.java:17)
Caused by: java.lang.ClassNotFoundException: org.apache.pinot.client.JsonAsyncHttpPinotClientTransportFactory
at PinotTest.testIt(PinotTest.java:17)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] PinotTest.testIt:17 » NoClassDefFound org/apache/pinot/client/JsonAsyncHttpPin...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.990 s
[INFO] Finished at: 2021-01-21T09:25:48-08:00
[INFO] ------------------------------------------------------------------------
Kartik Khare
01/21/2021, 5:31 PMZac Farrell
01/21/2021, 5:31 PMZac Farrell
01/21/2021, 5:31 PMZac Farrell
01/21/2021, 5:33 PMincubator-pinot
source code cloned from github:
mvn package -pl pinot-clients/pinot-jdbc-client -am
Kartik Khare
01/21/2021, 5:33 PMKartik Khare
01/21/2021, 5:34 PMmvn clean package -DskipTests
in incubator-pinot
repo. Running all the tests will take a lot of time.Zac Farrell
01/21/2021, 5:36 PMpinot-java-client
is a dependency of pinot-jdbc-client
, should it be added as such to the pom? Doing that would include pinot-java-client
when packaging pinot-jdbc-client
Zac Farrell
01/21/2021, 5:44 PMpinot-java-client
fixed the issue!
Thoughts on updating the pinot-jdbc-client
pom? Or at least updating the docs to mention this?Kartik Khare
01/21/2021, 5:45 PMZac Farrell
01/21/2021, 7:13 PMXiang Fu
Xiang Fu
Xiang Fu