I am new to HBase and Phoenix, and I have faced an issue with the Phoenix JDBC program in Java.
I have some sample data in a Phoenix table, and I have written a Java code to draw the data out into the console with a select statement.
My connection string is:jdbc:phoenix:localhost:2181
and the JDBC class I am using is :org.apache.phoenix.jdbc.PhoenixDriver
.
While running the program I am getting an error:
java.lang.NoClassDefFoundError: org/cloudera/htrace/Sampler
What jar file am I missing here?
I have found the jar the program was asking for from the maven repository https://mvnrepository.com/artifact/org.cloudera.htrace/htrace/1.46 Exact name of the JAR would be htrace-1.46.jar.